From 0f123eac04b6059a041637c2551aac7a9c0feab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=87=C4=B1rak?= Date: Fri, 15 Mar 2024 16:38:48 +0300 Subject: [PATCH 1/6] enhancement(framework): Adding "SuccessfullySaved" localization messages to Volo.Abp.UI --- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json | 5 +++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json | 1 + .../src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json | 1 + .../src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json | 3 ++- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json | 1 + .../src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json | 3 ++- .../Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json | 3 ++- .../Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json | 3 ++- 26 files changed, 50 insertions(+), 24 deletions(-) diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json index a812779c0c..9853b4a926 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "حفظ...", "Actions": "الإجراءات", "Delete": "حذف", + "SuccessfullySaved": "تم الحفظ بنجاح", "SuccessfullyDeleted": "تم الحذف بنجاح", "Edit": "تعديل", "Refresh": "تحديث", @@ -59,4 +60,4 @@ "Theme": "سمة", "NotAssigned": "غيرمعتمد" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json index 3051f02eb5..66a1d83bf2 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Ukládám...", "Actions": "Akce", "Delete": "Smazat", + "SuccessfullySaved": "Úspěšně uloženo", "SuccessfullyDeleted": "Úspěšně smazáno", "Edit": "Upravit", "Refresh": "Obnovit", @@ -59,4 +60,4 @@ "Theme": "Téma", "NotAssigned": "Nepřiřazena" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json index e7f64a85de..cd715bdcfc 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Speichern...", "Actions": "Aktionen", "Delete": "Löschen", + "SuccessfullySaved": "Erfolgreich gespeichert", "SuccessfullyDeleted": "Erfolgreich gelöscht", "Edit": "Bearbeiten", "Refresh": "Aktualisieren", @@ -59,4 +60,4 @@ "Theme": "Thema", "NotAssigned": "Nicht zugeordnet" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json index 8cb7b4c0dc..59ad102b03 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Αποθηκεύεται...", "Actions": "Ενέργειες", "Delete": "Διαγραφή", + "SucessfullySaved": "Αποθηκεύτηκε με επιτυχία", "SuccessfullyDeleted": "Διαγράφηκε με επιτυχία", "Edit": "Επεξεργασία", "Refresh": "Ανανέωση", @@ -49,8 +50,8 @@ "ItemWillBeDeletedMessageWithFormat": "Το {0} θα διαγραφεί", "ItemWillBeDeletedMessage": "Αυτό το στοιχείο θα διαγραφεί!", "ManageYourAccount": "Διαχείριση Λογαριασμού", - "OthersGroup":"άλλος", + "OthersGroup": "άλλος", "Today": "Σήμερα", "Apply": "Ισχύουν" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json index 68ad3dda07..f860266a7e 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Saving", "Actions": "Actions", "Delete": "Delete", + "SuccessfullySaved": "Successfully saved", "SuccessfullyDeleted": "Successfully deleted", "Edit": "Edit", "Refresh": "Refresh", @@ -54,4 +55,4 @@ "Today": "Today", "Apply": "Apply" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json index 5a9ee621a0..ae743395f4 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Saving...", "Actions": "Actions", "Delete": "Delete", + "SuccessfullySaved": "Successfully saved", "SuccessfullyDeleted": "Successfully deleted", "Edit": "Edit", "Refresh": "Refresh", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json index b5efa33449..60715a6d2d 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Guardando...", "Actions": "Opciones", "Delete": "Borrar", + "SuccessfullySaved": "Guardado con éxito", "SuccessfullyDeleted": "Eliminado con éxito", "Edit": "Editar", "Refresh": "Actualizar", @@ -59,4 +60,4 @@ "Theme": "Tema", "NotAssigned": "No asignado" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json index bcc6250656..1284702307 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "ذخیره...", "Actions": "عملیات", "Delete": "حذف", + "SuccessfullySaved": "با موفقیت ذخیره شد", "SuccessfullyDeleted": "با موفقیت حذف شد", "Edit": "ویرایش", "Refresh": "رفرش", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json index 13f1855235..9b6deb0812 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Tallennetaan...", "Actions": "Toiminnot", "Delete": "Poista", + "SuccessfullySaved": "Tallennettu onnistuneesti", "SuccessfullyDeleted": "Poistettu onnistuneesti", "Edit": "Muokkaa", "Refresh": "Virkistä", @@ -59,4 +60,4 @@ "Theme": "Teema", "NotAssigned": "Ei määritetty" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json index b574c4e179..fef9102384 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Enregistrement...", "Actions": "Actions", "Delete": "Supprimer", + "SuccessfullySaved": "Enregistré avec succès", "SuccessfullyDeleted": "Supprimé avec succès", "Edit": "Modifier", "Refresh": "Actualiser", @@ -59,4 +60,4 @@ "Theme": "Thème", "NotAssigned": "Non attribué" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json index a216d8bf0d..6a3689a1a3 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "सहेजा जा रहा है...", "Actions": "कार्रवाई", "Delete": "हटाएं", + "SuccessfullySaved": "सफलतापूर्वक सहेजा गया", "SuccessfullyDeleted": "सफलतापूर्वक हटा दिया गया", "Edit": "संपादित करें", "Refresh": "ताज़ा करना", @@ -59,4 +60,4 @@ "Theme": "विषय", "NotAssigned": "सौंपा नहीं गया है" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json index 7a5af21a9a..44b9577961 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Spremanje...", "Actions": "Akcije", "Delete": "Izbrisati", + "SuccessfullySaved": "Uspešno zabeleženo", "SuccessfullyDeleted": "Uspješno izbrisano", "Edit": "Uredi", "Refresh": "Osvježi", @@ -59,4 +60,4 @@ "Theme": "Tema", "NotAssigned": "Nije dodijeljeno" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json index 7b69f58cb2..b4f8224ec8 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Mentés...", "Actions": "Műveletek", "Delete": "Törlés", + "SuccessfullySaved": "Sikeresen mentve", "SuccessfullyDeleted": "Sikeresen törölve", "Edit": "Szerkesztés", "Refresh": "Frissítés", @@ -59,4 +60,4 @@ "Theme": "Téma", "NotAssigned": "Nem kijelölt" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json index 6115bc6866..fd13ccb91b 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Er að vista...", "Actions": "Aðgerðir", "Delete": "Eyða", + "SuccessfullySaved": "Tókst að vista", "SuccessfullyDeleted": "Tókst að eyða", "Edit": "Breyta", "Refresh": "Endurhlaða", @@ -59,4 +60,4 @@ "Theme": "Þema", "NotAssigned": "Ekki skráður" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json index dfeff1d476..77efaa762a 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Salvataggio...", "Actions": "Azioni", "Delete": "Elimina", + "SuccessfullySaved": "Salvato con successo", "SuccessfullyDeleted": "Eliminato con successo", "Edit": "Modifica", "Refresh": "Ricarica", @@ -59,4 +60,4 @@ "Theme": "Tema", "NotAssigned": "Non assegnato" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json index 98c7f0980d..7cb0369737 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Opslaan...", "Actions": "Acties", "Delete": "Verwijder", + "SuccessfullySaved": "Succesvol opgeslagen", "SuccessfullyDeleted": "Succesvol verwijderd", "Edit": "Bewerk", "Refresh": "Ververs", @@ -59,4 +60,4 @@ "Theme": "Thema", "NotAssigned": "Niet toegekend" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json index 027957fec2..4bed41f415 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Zapisywanie...", "Actions": "Akcje", "Delete": "Usuń", + "SuccessfullySaved": "Pomyślnie zapisano", "SuccessfullyDeleted": "Pomyślnie usunięto", "Edit": "Edytuj", "Refresh": "Odśwież", @@ -59,4 +60,4 @@ "Theme": "Temat", "NotAssigned": "Nie przypisano" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json index d43cd75d94..303fa257d2 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Salvando...", "Actions": "Ações", "Delete": "Excluir", + "SuccessfullySaved": "Salvo com sucesso", "SuccessfullyDeleted": "Excluído com sucesso", "Edit": "Editar", "Refresh": "Atualizar", @@ -59,4 +60,4 @@ "Theme": "Tema", "NotAssigned": "Não atribuído" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json index 53140c9f8e..b8b7760deb 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Se salvează...", "Actions": "Acţiuni", "Delete": "Şterge", + "SuccessfullySaved": "Salvat cu succes", "SuccessfullyDeleted": "Șters cu succes", "Edit": "Editează", "Refresh": "Reîncarcă", @@ -59,4 +60,4 @@ "Theme": "Temă", "NotAssigned": "Nealocat" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json index 19c7f6e80c..750914acee 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Сохранение...", "Actions": "Действия", "Delete": "Удалить", + "SuccessfullySaved": "Успешно сохранено", "SuccessfullyDeleted": "Успешно удалено", "Edit": "Редактировать", "Refresh": "Обновить", @@ -59,4 +60,4 @@ "Theme": "Тема", "NotAssigned": "Не назначен" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json index ef823bfcd9..5cf2733d21 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Úkladanie...", "Actions": "Akcie", "Delete": "Odstrániť", + "SuccessfullySaved": "Úspešne uložené", "SuccessfullyDeleted": "Úspešne odstránené", "Edit": "Upraviť", "Refresh": "Obnoviť", @@ -59,4 +60,4 @@ "Theme": "Téma", "NotAssigned": "Nepridelené" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json index a9cb2aadd1..a07dfb4cb4 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Shranjujem...", "Actions": "Dejanja", "Delete": "Izbriši", + "SuccessfullySaved": "Uspešno shranjeno", "SuccessfullyDeleted": "Uspešno izbrisano", "Edit": "Uredi", "Refresh": "Osveži", @@ -59,4 +60,4 @@ "Theme": "Tema", "NotAssigned": "Ni dodeljena" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json index dda41fd75e..befa98e290 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Kaydediliyor...", "Actions": "İşlemler", "Delete": "Sil", + "SuccessfullySaved": "Başarıyla kaydedildi", "SuccessfullyDeleted": "Başarıyla silindi", "Edit": "Düzenle", "Refresh": "Yenile", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json index d352b69ca2..b5a3cc390d 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "Đang lưu...", "Actions": "Hành động", "Delete": "Xóa", + "SuccessfullySaved": "Đã lưu thành công", "SuccessfullyDeleted": "Đã xóa thành công", "Edit": "Sửa", "Refresh": "Làm mới", @@ -59,4 +60,4 @@ "Theme": "chủ đề", "NotAssigned": "Không được chỉ định" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json index cbc45a5a08..4a6eda53e2 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "保存中...", "Actions": "操作", "Delete": "删除", + "SuccessfullySaved": "保存成功", "SuccessfullyDeleted": "删除成功", "Edit": "编辑", "Refresh": "刷新", @@ -59,4 +60,4 @@ "Theme": "主题", "NotAssigned": "未分配" } -} \ No newline at end of file +} diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json index 8223d79a43..c12faf9f7d 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json @@ -13,6 +13,7 @@ "SavingWithThreeDot": "保存中...", "Actions": "操作", "Delete": "刪除", + "SuccessfullySaved": "保存成功", "SuccessfullyDeleted": "刪除成功", "Edit": "修改", "Refresh": "更新", @@ -59,4 +60,4 @@ "Theme": "主題", "NotAssigned": "未分配" } -} \ No newline at end of file +} From 771675da64df3a109e07aaaa9e112beff584600e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=87=C4=B1rak?= Date: Fri, 15 Mar 2024 16:40:07 +0300 Subject: [PATCH 2/6] enhancement(npm/ng-packs): Adding toaster notifications to account, feature management, identity, permission management, tenant management create, update, delete operations --- .../personal-settings.component.ts | 6 +-- .../feature-management.component.ts | 3 +- .../lib/components/roles/roles.component.ts | 3 +- .../lib/components/users/users.component.ts | 17 +++++-- .../permission-management.component.ts | 47 +++++++++++-------- .../components/tenants/tenants.component.ts | 3 +- 6 files changed, 50 insertions(+), 29 deletions(-) diff --git a/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts b/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts index 94c96e1e80..2742e81918 100644 --- a/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts +++ b/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts @@ -1,6 +1,6 @@ import { ProfileDto, ProfileService } from '@abp/ng.account.core/proxy'; import { Confirmation, ConfirmationService, ToasterService } from '@abp/ng.theme.shared'; -import { Component, Inject, Injector, OnInit, ViewEncapsulation } from '@angular/core'; +import { Component, Inject, Injector, OnInit } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { finalize, filter } from 'rxjs/operators'; import { Account } from '../../models/account'; @@ -76,10 +76,10 @@ export class PersonalSettingsComponent this.configState.refreshAppState(); this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 }); - if(isRefreshTokenExists){ + if (isRefreshTokenExists) { return this.authService.refreshToken(); } - + if (isLogOutConfirmMessageVisible) { this.showLogoutConfirmMessage(); } diff --git a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts index 25d8e76764..07d01c0099 100644 --- a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts +++ b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts @@ -11,7 +11,7 @@ import { LocaleDirection, ToasterService, } from '@abp/ng.theme.shared'; -import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Component, EventEmitter, Input, Output, inject } from '@angular/core'; import { finalize } from 'rxjs/operators'; import { FeatureManagement } from '../../models/feature-management'; @@ -127,6 +127,7 @@ export class FeatureManagementComponent .subscribe(() => { this.visible = false; + this.toasterService.success('AbpFeatureManagement::Saved'); if (!this.providerKey) { // to refresh host's features this.configState.refreshAppState().subscribe(); diff --git a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts index fd8b3670f8..032782a883 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts @@ -1,7 +1,7 @@ import { ListService, PagedAndSortedResultRequestDto, PagedResultDto } from '@abp/ng.core'; import { IdentityRoleDto, IdentityRoleService } from '@abp/ng.identity/proxy'; import { ePermissionManagementComponents } from '@abp/ng.permission-management'; -import {Confirmation, ConfirmationService, ToasterService} from '@abp/ng.theme.shared'; +import { Confirmation, ConfirmationService, ToasterService } from '@abp/ng.theme.shared'; import { EXTENSIONS_IDENTIFIER, FormPropData, @@ -90,6 +90,7 @@ export class RolesComponent implements OnInit { .pipe(finalize(() => (this.modalBusy = false))) .subscribe(() => { this.isModalVisible = false; + this.toasterService.success('AbpUi::SuccessfullySaved'); this.list.get(); }); } diff --git a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts index f8802de304..4d14a7bf3e 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts @@ -6,7 +6,12 @@ import { IdentityUserService, } from '@abp/ng.identity/proxy'; import { ePermissionManagementComponents } from '@abp/ng.permission-management'; -import {Confirmation, ConfirmationService, eFormComponets, ToasterService} from '@abp/ng.theme.shared'; +import { + Confirmation, + ConfirmationService, + eFormComponets, + ToasterService, +} from '@abp/ng.theme.shared'; import { EXTENSIONS_IDENTIFIER, FormPropData, @@ -20,7 +25,12 @@ import { TrackByFunction, ViewChild, } from '@angular/core'; -import { AbstractControl, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; +import { + AbstractControl, + UntypedFormArray, + UntypedFormBuilder, + UntypedFormGroup, +} from '@angular/forms'; import { finalize, switchMap, tap } from 'rxjs/operators'; import { eIdentityComponents } from '../../enums/components'; @@ -61,7 +71,7 @@ export class UsersComponent implements OnInit { entityDisplayName: string; - inputKey=eFormComponets.FormCheckboxComponent + inputKey = eFormComponets.FormCheckboxComponent; trackByFn: TrackByFunction = (index, item) => Object.keys(item)[0] || index; @@ -158,6 +168,7 @@ export class UsersComponent implements OnInit { .pipe(finalize(() => (this.modalBusy = false))) .subscribe(() => { this.isModalVisible = false; + this.toasterService.success('AbpUi::SuccessfullySaved'); this.list.get(); }); } diff --git a/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts b/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts index 4cb90a0fff..5e9a1d9525 100644 --- a/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts +++ b/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts @@ -7,7 +7,7 @@ import { ProviderInfoDto, UpdatePermissionDto, } from '@abp/ng.permission-management/proxy'; -import { LocaleDirection } from '@abp/ng.theme.shared'; +import { LocaleDirection, ToasterService } from '@abp/ng.theme.shared'; import { Component, ElementRef, @@ -41,16 +41,17 @@ type PermissionWithGroupName = PermissionGrantInfoDto & { overflow-y: scroll; } .scroll-in-modal { - overflow:auto; - max-height: calc(100vh - 15rem) + overflow: auto; + max-height: calc(100vh - 15rem); } `, ], }) export class PermissionManagementComponent implements - PermissionManagement.PermissionManagementComponentInputs, - PermissionManagement.PermissionManagementComponentOutputs { + PermissionManagement.PermissionManagementComponentInputs, + PermissionManagement.PermissionManagementComponentOutputs +{ @Input() readonly providerName!: string; @@ -117,7 +118,11 @@ export class PermissionManagementComponent trackByFn: TrackByFunction = (_, item) => item.name; - constructor(protected service: PermissionsService, protected configState: ConfigStateService) { } + constructor( + protected service: PermissionsService, + protected configState: ConfigStateService, + private readonly toasterService: ToasterService, + ) {} getChecked(name: string) { return (this.permissions.find(per => per.name === name) || { isGranted: false }).isGranted; @@ -130,19 +135,20 @@ export class PermissionManagementComponent return; } - const margin = `margin-${(document.body.dir as LocaleDirection) === 'rtl' ? 'right' : 'left' - }.px`; + const margin = `margin-${ + (document.body.dir as LocaleDirection) === 'rtl' ? 'right' : 'left' + }.px`; const permissions = (this.data.groups.find(group => group.name === this.selectedGroup?.name) || {}).permissions || []; this.selectedGroupPermissions = permissions.map( permission => - ({ - ...permission, - style: { [margin]: findMargin(permissions, permission) }, - isGranted: (this.permissions.find(per => per.name === permission.name) || {}).isGranted, - } as unknown as PermissionWithStyle), + ({ + ...permission, + style: { [margin]: findMargin(permissions, permission) }, + isGranted: (this.permissions.find(per => per.name === permission.name) || {}).isGranted, + }) as unknown as PermissionWithStyle, ); } @@ -199,19 +205,19 @@ export class PermissionManagementComponent if (per.name === clickedPermissions.parentName) { parentPermission = per; } - }) + }); this.permissions.forEach(per => { if (parentPermission.name === per.parentName) { per.isGranted && childPermissionGrantedCount++; } - }) + }); if (childPermissionGrantedCount === 1 && !parentPermission.isGranted) { this.permissions = this.permissions.map(per => { if (per.name === parentPermission.name) { per.isGranted = true; } return per; - }) + }); } return; } @@ -220,16 +226,16 @@ export class PermissionManagementComponent per.isGranted = false; } return per; - }) + }); } updateSelectedGroupPermissions(clickedPermissions: PermissionGrantInfoDto) { this.selectedGroupPermissions = this.selectedGroupPermissions.map(per => { if (per.name === clickedPermissions.name) { - per.isGranted = !per.isGranted + per.isGranted = !per.isGranted; } return per; - }) + }); } setTabCheckboxState() { @@ -310,7 +316,7 @@ export class PermissionManagementComponent const changedPermissions: UpdatePermissionDto[] = this.permissions .filter(per => (unchangedPermissions.find(unchanged => unchanged.name === per.name) || {}).isGranted === - per.isGranted + per.isGranted ? false : true, ) @@ -332,6 +338,7 @@ export class PermissionManagementComponent ) .subscribe(() => { this.visible = false; + this.toasterService.success('AbpPermissionManagement::SuccessfullySaved'); }); } diff --git a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts index b759947b32..79ae31108d 100644 --- a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts +++ b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts @@ -1,7 +1,7 @@ import { ListService, PagedResultDto } from '@abp/ng.core'; import { eFeatureManagementComponents } from '@abp/ng.feature-management'; import { GetTenantsInput, TenantDto, TenantService } from '@abp/ng.tenant-management/proxy'; -import {Confirmation, ConfirmationService, ToasterService} from '@abp/ng.theme.shared'; +import { Confirmation, ConfirmationService, ToasterService } from '@abp/ng.theme.shared'; import { EXTENSIONS_IDENTIFIER, FormPropData, @@ -93,6 +93,7 @@ export class TenantsComponent implements OnInit { .pipe(finalize(() => (this.modalBusy = false))) .subscribe(() => { this.isModalVisible = false; + this.toasterService.success('AbpUi::SuccessfullySaved'); this.list.get(); }); } From fe944fa471df4c1d5733248d8bb0b09dce9816ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=87=C4=B1rak?= Date: Tue, 19 Mar 2024 09:22:51 +0300 Subject: [PATCH 3/6] "SuccessfullyDeleted" localization key changed to "DeletedSuccessfully", "SuccessfullySaved" localization key changed to "SavedSuccessfully" --- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json | 4 ++-- .../src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json | 4 ++-- 26 files changed, 52 insertions(+), 52 deletions(-) diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json index 9853b4a926..c5a82323a7 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "حفظ...", "Actions": "الإجراءات", "Delete": "حذف", - "SuccessfullySaved": "تم الحفظ بنجاح", - "SuccessfullyDeleted": "تم الحذف بنجاح", + "SavedSuccessfully": "تم الحفظ بنجاح", + "DeletedSuccessfully": "تم الحذف بنجاح", "Edit": "تعديل", "Refresh": "تحديث", "Language": "لغة", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json index 66a1d83bf2..0ad24147ad 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Ukládám...", "Actions": "Akce", "Delete": "Smazat", - "SuccessfullySaved": "Úspěšně uloženo", - "SuccessfullyDeleted": "Úspěšně smazáno", + "SavedSuccessfully": "Úspěšně uloženo", + "DeletedSuccessfully": "Úspěšně smazáno", "Edit": "Upravit", "Refresh": "Obnovit", "Language": "Jazyk", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json index cd715bdcfc..4ccf318098 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Speichern...", "Actions": "Aktionen", "Delete": "Löschen", - "SuccessfullySaved": "Erfolgreich gespeichert", - "SuccessfullyDeleted": "Erfolgreich gelöscht", + "SavedSuccessfully": "Erfolgreich gespeichert", + "DeletedSuccessfully": "Erfolgreich gelöscht", "Edit": "Bearbeiten", "Refresh": "Aktualisieren", "Language": "Sprache", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json index 59ad102b03..41516ba8ea 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Αποθηκεύεται...", "Actions": "Ενέργειες", "Delete": "Διαγραφή", - "SucessfullySaved": "Αποθηκεύτηκε με επιτυχία", - "SuccessfullyDeleted": "Διαγράφηκε με επιτυχία", + "SavedSuccessfully": "Αποθηκεύτηκε με επιτυχία", + "DeletedSuccessfully": "Διαγράφηκε με επιτυχία", "Edit": "Επεξεργασία", "Refresh": "Ανανέωση", "Language": "Γλώσσα", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json index f860266a7e..9376548bf2 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Saving", "Actions": "Actions", "Delete": "Delete", - "SuccessfullySaved": "Successfully saved", - "SuccessfullyDeleted": "Successfully deleted", + "SavedSuccessfully": "Saved successfully", + "DeletedSuccessfully": "Deleted successfully", "Edit": "Edit", "Refresh": "Refresh", "Language": "Language", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json index ae743395f4..5bac61fe4d 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Saving...", "Actions": "Actions", "Delete": "Delete", - "SuccessfullySaved": "Successfully saved", - "SuccessfullyDeleted": "Successfully deleted", + "SavedSuccessfully": "Saved successfully", + "DeletedSuccessfully": "Deleted successfully", "Edit": "Edit", "Refresh": "Refresh", "Language": "Language", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json index 60715a6d2d..3b1cf8620f 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Guardando...", "Actions": "Opciones", "Delete": "Borrar", - "SuccessfullySaved": "Guardado con éxito", - "SuccessfullyDeleted": "Eliminado con éxito", + "SavedSuccessfully": "Guardado con éxito", + "DeletedSuccessfully": "Eliminado con éxito", "Edit": "Editar", "Refresh": "Actualizar", "Language": "Idioma", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json index 1284702307..102e497c2a 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "ذخیره...", "Actions": "عملیات", "Delete": "حذف", - "SuccessfullySaved": "با موفقیت ذخیره شد", - "SuccessfullyDeleted": "با موفقیت حذف شد", + "SavedSuccessfully": "با موفقیت ذخیره شد", + "DeletedSuccessfully": "با موفقیت حذف شد", "Edit": "ویرایش", "Refresh": "رفرش", "Language": "زبان", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json index 9b6deb0812..73a29e3e95 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Tallennetaan...", "Actions": "Toiminnot", "Delete": "Poista", - "SuccessfullySaved": "Tallennettu onnistuneesti", - "SuccessfullyDeleted": "Poistettu onnistuneesti", + "SavedSuccessfully": "Tallennettu onnistuneesti", + "DeletedSuccessfully": "Poistettu onnistuneesti", "Edit": "Muokkaa", "Refresh": "Virkistä", "Language": "Kieli", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json index fef9102384..734056ac05 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Enregistrement...", "Actions": "Actions", "Delete": "Supprimer", - "SuccessfullySaved": "Enregistré avec succès", - "SuccessfullyDeleted": "Supprimé avec succès", + "SavedSuccessfully": "Enregistré avec succès", + "DeletedSuccessfully": "Supprimé avec succès", "Edit": "Modifier", "Refresh": "Actualiser", "Language": "Langue", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json index 6a3689a1a3..d5305a50ac 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "सहेजा जा रहा है...", "Actions": "कार्रवाई", "Delete": "हटाएं", - "SuccessfullySaved": "सफलतापूर्वक सहेजा गया", - "SuccessfullyDeleted": "सफलतापूर्वक हटा दिया गया", + "SavedSuccessfully": "सफलतापूर्वक सहेजा गया", + "DeletedSuccessfully": "सफलतापूर्वक हटा दिया गया", "Edit": "संपादित करें", "Refresh": "ताज़ा करना", "Language": "भाषा: हिन्दी", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json index 44b9577961..fab7011098 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Spremanje...", "Actions": "Akcije", "Delete": "Izbrisati", - "SuccessfullySaved": "Uspešno zabeleženo", - "SuccessfullyDeleted": "Uspješno izbrisano", + "SavedSuccessfully": "Uspešno zabeleženo", + "DeletedSuccessfully": "Uspješno izbrisano", "Edit": "Uredi", "Refresh": "Osvježi", "Language": "Jezik", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json index b4f8224ec8..be6b1a94a2 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Mentés...", "Actions": "Műveletek", "Delete": "Törlés", - "SuccessfullySaved": "Sikeresen mentve", - "SuccessfullyDeleted": "Sikeresen törölve", + "SavedSuccessfully": "Sikeresen mentve", + "DeletedSuccessfully": "Sikeresen törölve", "Edit": "Szerkesztés", "Refresh": "Frissítés", "Language": "Nyelv", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json index fd13ccb91b..635fc4d6d1 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Er að vista...", "Actions": "Aðgerðir", "Delete": "Eyða", - "SuccessfullySaved": "Tókst að vista", - "SuccessfullyDeleted": "Tókst að eyða", + "SavedSuccessfully": "Tókst að vista", + "DeletedSuccessfully": "Tókst að eyða", "Edit": "Breyta", "Refresh": "Endurhlaða", "Language": "Tungumál", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json index 77efaa762a..bb8bb2ee31 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Salvataggio...", "Actions": "Azioni", "Delete": "Elimina", - "SuccessfullySaved": "Salvato con successo", - "SuccessfullyDeleted": "Eliminato con successo", + "SavedSuccessfully": "Salvato con successo", + "DeletedSuccessfully": "Eliminato con successo", "Edit": "Modifica", "Refresh": "Ricarica", "Language": "Lingua", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json index 7cb0369737..b074253db8 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Opslaan...", "Actions": "Acties", "Delete": "Verwijder", - "SuccessfullySaved": "Succesvol opgeslagen", - "SuccessfullyDeleted": "Succesvol verwijderd", + "SavedSuccessfully": "Succesvol opgeslagen", + "DeletedSuccessfully": "Succesvol verwijderd", "Edit": "Bewerk", "Refresh": "Ververs", "Language": "Taal", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json index 4bed41f415..1f5135b80a 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Zapisywanie...", "Actions": "Akcje", "Delete": "Usuń", - "SuccessfullySaved": "Pomyślnie zapisano", - "SuccessfullyDeleted": "Pomyślnie usunięto", + "SavedSuccessfully": "Pomyślnie zapisano", + "DeletedSuccessfully": "Pomyślnie usunięto", "Edit": "Edytuj", "Refresh": "Odśwież", "Language": "Język", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json index 303fa257d2..51a1ce8ba0 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Salvando...", "Actions": "Ações", "Delete": "Excluir", - "SuccessfullySaved": "Salvo com sucesso", - "SuccessfullyDeleted": "Excluído com sucesso", + "SavedSuccessfully": "Salvo com sucesso", + "DeletedSuccessfully": "Excluído com sucesso", "Edit": "Editar", "Refresh": "Atualizar", "Language": "Idioma", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json index b8b7760deb..2a2151b081 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Se salvează...", "Actions": "Acţiuni", "Delete": "Şterge", - "SuccessfullySaved": "Salvat cu succes", - "SuccessfullyDeleted": "Șters cu succes", + "SavedSuccessfully": "Salvat cu succes", + "DeletedSuccessfully": "Șters cu succes", "Edit": "Editează", "Refresh": "Reîncarcă", "Language": "Limba", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json index 750914acee..f78af7c6a7 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Сохранение...", "Actions": "Действия", "Delete": "Удалить", - "SuccessfullySaved": "Успешно сохранено", - "SuccessfullyDeleted": "Успешно удалено", + "SavedSuccessfully": "Успешно сохранено", + "DeletedSuccessfully": "Успешно удалено", "Edit": "Редактировать", "Refresh": "Обновить", "Language": "Язык", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json index 5cf2733d21..c0e3c9f3bd 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Úkladanie...", "Actions": "Akcie", "Delete": "Odstrániť", - "SuccessfullySaved": "Úspešne uložené", - "SuccessfullyDeleted": "Úspešne odstránené", + "SavedSuccessfully": "Úspešne uložené", + "DeletedSuccessfully": "Úspešne odstránené", "Edit": "Upraviť", "Refresh": "Obnoviť", "Language": "Jazyk", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json index a07dfb4cb4..d417af7cf7 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Shranjujem...", "Actions": "Dejanja", "Delete": "Izbriši", - "SuccessfullySaved": "Uspešno shranjeno", - "SuccessfullyDeleted": "Uspešno izbrisano", + "SavedSuccessfully": "Uspešno shranjeno", + "DeletedSuccessfully": "Uspešno izbrisano", "Edit": "Uredi", "Refresh": "Osveži", "Language": "Jezik", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json index befa98e290..ae54b8d15e 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Kaydediliyor...", "Actions": "İşlemler", "Delete": "Sil", - "SuccessfullySaved": "Başarıyla kaydedildi", - "SuccessfullyDeleted": "Başarıyla silindi", + "SavedSuccessfully": "Başarıyla kaydedildi", + "DeletedSuccessfully": "Başarıyla silindi", "Edit": "Düzenle", "Refresh": "Yenile", "Language": "Dil", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json index b5a3cc390d..1204aa588b 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "Đang lưu...", "Actions": "Hành động", "Delete": "Xóa", - "SuccessfullySaved": "Đã lưu thành công", - "SuccessfullyDeleted": "Đã xóa thành công", + "SavedSuccessfully": "Đã lưu thành công", + "DeletedSuccessfully": "Đã xóa thành công", "Edit": "Sửa", "Refresh": "Làm mới", "Language": "Ngôn ngữ", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json index 4a6eda53e2..6d55191b06 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "保存中...", "Actions": "操作", "Delete": "删除", - "SuccessfullySaved": "保存成功", - "SuccessfullyDeleted": "删除成功", + "SavedSuccessfully": "保存成功", + "DeletedSuccessfully": "删除成功", "Edit": "编辑", "Refresh": "刷新", "Language": "语言", diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json index c12faf9f7d..51bdc6de5f 100644 --- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json +++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json @@ -13,8 +13,8 @@ "SavingWithThreeDot": "保存中...", "Actions": "操作", "Delete": "刪除", - "SuccessfullySaved": "保存成功", - "SuccessfullyDeleted": "刪除成功", + "SavedSuccessfully": "保存成功", + "DeletedSuccessfully": "刪除成功", "Edit": "修改", "Refresh": "更新", "Language": "語言", From d48fee6b6c1382ee94eaf22506f434f2b9b63be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=87=C4=B1rak?= Date: Tue, 19 Mar 2024 09:25:53 +0300 Subject: [PATCH 4/6] Update success message strings --- .../identity/src/lib/components/roles/roles.component.ts | 4 ++-- .../identity/src/lib/components/users/users.component.ts | 4 ++-- .../src/lib/components/permission-management.component.ts | 2 +- .../src/lib/components/tenants/tenants.component.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts index 032782a883..00e828a279 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts @@ -90,7 +90,7 @@ export class RolesComponent implements OnInit { .pipe(finalize(() => (this.modalBusy = false))) .subscribe(() => { this.isModalVisible = false; - this.toasterService.success('AbpUi::SuccessfullySaved'); + this.toasterService.success('AbpUi::SavedSuccessfully'); this.list.get(); }); } @@ -102,7 +102,7 @@ export class RolesComponent implements OnInit { }) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.toasterService.success('AbpUi::SuccessfullyDeleted'); + this.toasterService.success('AbpUi::DeletedSuccessfully'); this.service.delete(id).subscribe(() => this.list.get()); } }); diff --git a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts index 4d14a7bf3e..95ef1f3417 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts @@ -168,7 +168,7 @@ export class UsersComponent implements OnInit { .pipe(finalize(() => (this.modalBusy = false))) .subscribe(() => { this.isModalVisible = false; - this.toasterService.success('AbpUi::SuccessfullySaved'); + this.toasterService.success('AbpUi::SavedSuccessfully'); this.list.get(); }); } @@ -181,7 +181,7 @@ export class UsersComponent implements OnInit { .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service.delete(id).subscribe(() => { - this.toasterService.success('AbpUi::SuccessfullyDeleted'); + this.toasterService.success('AbpUi::DeletedSuccessfully'); this.list.get(); }); } diff --git a/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts b/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts index 5e9a1d9525..6648519e38 100644 --- a/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts +++ b/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts @@ -338,7 +338,7 @@ export class PermissionManagementComponent ) .subscribe(() => { this.visible = false; - this.toasterService.success('AbpPermissionManagement::SuccessfullySaved'); + this.toasterService.success('AbpUi::SavedSuccessfully'); }); } diff --git a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts index 79ae31108d..45381119ef 100644 --- a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts +++ b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts @@ -93,7 +93,7 @@ export class TenantsComponent implements OnInit { .pipe(finalize(() => (this.modalBusy = false))) .subscribe(() => { this.isModalVisible = false; - this.toasterService.success('AbpUi::SuccessfullySaved'); + this.toasterService.success('AbpUi::SavedSuccessfully'); this.list.get(); }); } @@ -109,7 +109,7 @@ export class TenantsComponent implements OnInit { ) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.toasterService.success('AbpUi::SuccessfullyDeleted'); + this.toasterService.success('AbpUi::DeletedSuccessfully'); this.service.delete(id).subscribe(() => this.list.get()); } }); From f6a6eae4b2bc0c9ff810f7bd44fd18418868fb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=87=C4=B1rak?= Date: Thu, 21 Mar 2024 08:27:59 +0300 Subject: [PATCH 5/6] Refactor dependency injection in component constructors --- .../personal-settings.component.ts | 27 +++++++++---------- .../feature-management.component.ts | 14 +++++----- .../lib/components/roles/roles.component.ts | 16 +++++------ .../lib/components/users/users.component.ts | 17 ++++++------ .../permission-management.component.ts | 11 ++++---- .../components/tenants/tenants.component.ts | 18 ++++++------- .../create-error-component.service.ts | 2 +- 7 files changed, 48 insertions(+), 57 deletions(-) diff --git a/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts b/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts index 2742e81918..8a3a63d376 100644 --- a/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts +++ b/npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts @@ -1,6 +1,6 @@ import { ProfileDto, ProfileService } from '@abp/ng.account.core/proxy'; import { Confirmation, ConfirmationService, ToasterService } from '@abp/ng.theme.shared'; -import { Component, Inject, Injector, OnInit } from '@angular/core'; +import { Component, inject, Injector, OnInit } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { finalize, filter } from 'rxjs/operators'; import { Account } from '../../models/account'; @@ -31,25 +31,24 @@ export class PersonalSettingsComponent Account.PersonalSettingsComponentInputs, Account.PersonalSettingsComponentOutputs { + private readonly fb = inject(UntypedFormBuilder); + protected readonly toasterService = inject(ToasterService); + protected readonly profileService = inject(ProfileService); + protected readonly manageProfileState = inject(ManageProfileStateService); + protected readonly authService = inject(AuthService); + protected readonly confirmationService = inject(ConfirmationService); + protected readonly configState = inject(ConfigStateService); + protected readonly isPersonalSettingsChangedConfirmationActive = inject( + RE_LOGIN_CONFIRMATION_TOKEN, + ); + private readonly injector = inject(Injector); + selected?: ProfileDto; form!: UntypedFormGroup; inProgress?: boolean; - constructor( - private fb: UntypedFormBuilder, - private toasterService: ToasterService, - private profileService: ProfileService, - private manageProfileState: ManageProfileStateService, - private readonly authService: AuthService, - private confirmationService: ConfirmationService, - private configState: ConfigStateService, - @Inject(RE_LOGIN_CONFIRMATION_TOKEN) - private isPersonalSettingsChangedConfirmationActive: boolean, - protected injector: Injector, - ) {} - buildForm() { this.selected = this.manageProfileState.getProfile(); if (!this.selected) { diff --git a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts index 07d01c0099..4869576ae3 100644 --- a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts +++ b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts @@ -31,6 +31,12 @@ export class FeatureManagementComponent FeatureManagement.FeatureManagementComponentInputs, FeatureManagement.FeatureManagementComponentOutputs { + protected readonly trackByService = inject(TrackByService); + protected readonly toasterService = inject(ToasterService); + protected readonly service = inject(FeaturesService); + protected readonly configState = inject(ConfigStateService); + protected readonly confirmationService = inject(ConfirmationService); + @Input() providerKey: string; @@ -72,14 +78,6 @@ export class FeatureManagementComponent modalBusy = false; - constructor( - public readonly track: TrackByService, - private toasterService: ToasterService, - protected service: FeaturesService, - protected configState: ConfigStateService, - protected confirmationService: ConfirmationService, - ) {} - openModal() { if (!this.providerName) { throw new Error('providerName is required.'); diff --git a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts index 00e828a279..794b545fcd 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts @@ -7,7 +7,7 @@ import { FormPropData, generateFormFromProps, } from '@abp/ng.components/extensible'; -import { Component, Injector, OnInit } from '@angular/core'; +import { Component, inject, Injector, OnInit } from '@angular/core'; import { UntypedFormGroup } from '@angular/forms'; import { finalize } from 'rxjs/operators'; import { eIdentityComponents } from '../../enums/components'; @@ -24,6 +24,12 @@ import { eIdentityComponents } from '../../enums/components'; ], }) export class RolesComponent implements OnInit { + protected readonly list = inject(ListService); + protected readonly confirmationService = inject(ConfirmationService); + protected readonly toasterService = inject(ToasterService); + private readonly injector = inject(Injector); + protected readonly service = inject(IdentityRoleService); + data: PagedResultDto = { items: [], totalCount: 0 }; form!: UntypedFormGroup; @@ -44,14 +50,6 @@ export class RolesComponent implements OnInit { this.visiblePermissions = event; }; - constructor( - public readonly list: ListService, - protected confirmationService: ConfirmationService, - private toasterService: ToasterService, - protected injector: Injector, - protected service: IdentityRoleService, - ) {} - ngOnInit() { this.hookToQuery(); } diff --git a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts index 95ef1f3417..a0f0e08e4b 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts @@ -19,6 +19,7 @@ import { } from '@abp/ng.components/extensible'; import { Component, + inject, Injector, OnInit, TemplateRef, @@ -46,6 +47,13 @@ import { eIdentityComponents } from '../../enums/components'; ], }) export class UsersComponent implements OnInit { + protected readonly list = inject(ListService); + protected readonly confirmationService = inject(ConfirmationService); + protected readonly service = inject(IdentityUserService); + protected readonly toasterService = inject(ToasterService); + private readonly fb = inject(UntypedFormBuilder); + private readonly injector = inject(Injector); + data: PagedResultDto = { items: [], totalCount: 0 }; @ViewChild('modalContent', { static: false }) @@ -83,15 +91,6 @@ export class UsersComponent implements OnInit { return ((this.form.get('roleNames') as UntypedFormArray)?.controls as UntypedFormGroup[]) || []; } - constructor( - public readonly list: ListService, - protected confirmationService: ConfirmationService, - protected service: IdentityUserService, - private toasterService: ToasterService, - protected fb: UntypedFormBuilder, - protected injector: Injector, - ) {} - ngOnInit() { this.hookToQuery(); } diff --git a/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts b/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts index 6648519e38..8503a2bd81 100644 --- a/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts +++ b/npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts @@ -12,6 +12,7 @@ import { Component, ElementRef, EventEmitter, + inject, Input, Output, QueryList, @@ -52,6 +53,10 @@ export class PermissionManagementComponent PermissionManagement.PermissionManagementComponentInputs, PermissionManagement.PermissionManagementComponentOutputs { + protected readonly service = inject(PermissionsService); + protected readonly configState = inject(ConfigStateService); + protected readonly toasterService = inject(ToasterService); + @Input() readonly providerName!: string; @@ -118,12 +123,6 @@ export class PermissionManagementComponent trackByFn: TrackByFunction = (_, item) => item.name; - constructor( - protected service: PermissionsService, - protected configState: ConfigStateService, - private readonly toasterService: ToasterService, - ) {} - getChecked(name: string) { return (this.permissions.find(per => per.name === name) || { isGranted: false }).isGranted; } diff --git a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts index 45381119ef..99169b1cbe 100644 --- a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts +++ b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts @@ -7,7 +7,7 @@ import { FormPropData, generateFormFromProps, } from '@abp/ng.components/extensible'; -import { Component, Injector, OnInit } from '@angular/core'; +import { Component, inject, Injector, OnInit } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { finalize } from 'rxjs/operators'; import { eTenantManagementComponents } from '../../enums/components'; @@ -24,6 +24,13 @@ import { eTenantManagementComponents } from '../../enums/components'; ], }) export class TenantsComponent implements OnInit { + protected readonly list = inject(ListService); + protected readonly confirmationService = inject(ConfirmationService); + protected readonly service = inject(TenantService); + protected readonly toasterService = inject(ToasterService); + private readonly fb = inject(UntypedFormBuilder); + private readonly injector = inject(Injector); + data: PagedResultDto = { items: [], totalCount: 0 }; selected!: TenantDto; @@ -48,15 +55,6 @@ export class TenantsComponent implements OnInit { this.visibleFeatures = value; }; - constructor( - public readonly list: ListService, - private injector: Injector, - private confirmationService: ConfirmationService, - private service: TenantService, - private toasterService: ToasterService, - private fb: UntypedFormBuilder, - ) {} - ngOnInit() { this.hookToQuery(); } diff --git a/npm/ng-packs/packages/theme-shared/src/lib/services/create-error-component.service.ts b/npm/ng-packs/packages/theme-shared/src/lib/services/create-error-component.service.ts index 5a6f02aef9..da1ae0ddc0 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/services/create-error-component.service.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/services/create-error-component.service.ts @@ -23,7 +23,7 @@ export class CreateErrorComponentService { protected readonly rendererFactory = inject(RendererFactory2); protected readonly cfRes = inject(ComponentFactoryResolver); protected readonly routerEvents = inject(RouterEvents); - protected readonly injector = inject(Injector); + private readonly injector = inject(Injector); protected readonly httpErrorConfig = inject(HTTP_ERROR_CONFIG); componentRef: ComponentRef | null = null; From 078c635cf3d77666bfc9577c7efa4b501eab909b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=87=C4=B1rak?= Date: Fri, 22 Mar 2024 16:11:14 +0300 Subject: [PATCH 6/6] fix(npm): Fix feature management name --- .../feature-management/feature-management.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts index 4869576ae3..2dd2497e81 100644 --- a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts +++ b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts @@ -31,7 +31,7 @@ export class FeatureManagementComponent FeatureManagement.FeatureManagementComponentInputs, FeatureManagement.FeatureManagementComponentOutputs { - protected readonly trackByService = inject(TrackByService); + protected readonly track = inject(TrackByService); protected readonly toasterService = inject(ToasterService); protected readonly service = inject(FeaturesService); protected readonly configState = inject(ConfigStateService);