Skip to content

Commit 617717d

Browse files
committed
feat: login & register modals made pages
1 parent fbd76d1 commit 617717d

15 files changed

Lines changed: 299 additions & 395 deletions

File tree

lang/tr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
"errors": {
244244
"NETWORK_ERROR": "Bağlantı hatası, lütfen bağlantınızı kontrol edin!",
245245
"INTERNAL_SERVER_ERROR": "Bir hata oluştu, lütfen bildiriniz.",
246-
"LOGIN_IS_INVALID": "Giriş yapılamıyor, bilgilerinizi kontrol edin!",
246+
"LOGIN_IS_INVALID": "Giriş yapılamadı, bilgilerinizi kontrol edin!",
247247
"CANT_CHANGE_EMAIL_WAIT_15_MINUTES": "E-posta değiştirilemez, 15 dakika bekleyin.",
248248
"CANT_RESET_PASSWORD_WAIT_15_MINUTES": "Şifre sıfırlanamaz, 15 dakika bekleyin.",
249249
"CATEGORY_NOT_EXISTS": "Bu kategori bulunamadı!",

src/lib/component/Navbar.svelte

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,15 @@
171171
</li>
172172
{:else}
173173
<li class="nav-item me-xl-0 me-3">
174-
<button class="nav-link" on:click={showLoginModal}>
174+
<a href="/login" class="nav-link">
175175
{$_("buttons.login")}
176-
</button>
176+
</a>
177177
</li>
178178
<li class="nav-item">
179-
<button
180-
type="button"
181-
class="btn btn-warning rounded-pill"
182-
on:click={showRegisterModal}>
179+
<a href="/register"
180+
class="btn btn-warning rounded-pill">
183181
{$_("buttons.register")}
184-
</button>
182+
</a>
185183
</li>
186184
{/if}
187185
</ul>
@@ -231,16 +229,13 @@
231229
import { page } from "$app/stores";
232230
import { PANEL_URL } from "$lib/variables.js";
233231
234-
import { notificationsCount, quickNotifications, logout } from "$lib/Store";
232+
import { logout, notificationsCount, quickNotifications } from "$lib/Store";
235233
import ApiUtil from "$lib/api.util.js";
236234
import { currentLanguage } from "$lib/language.util.js";
237235
import { onNotificationClick } from "$lib/NotificationManager.js";
238236
239237
import NoContent from "$lib/component/NoContent.svelte";
240238
241-
import { show as showLoginModal } from "$lib/component/modals/LoginModal.svelte";
242-
import { show as showRegisterModal } from "$lib/component/modals/RegisterModal.svelte";
243-
244239
let quickNotificationProcessID = 0;
245240
246241
let checkTime = 0;

src/lib/component/modals/LoginModal.svelte

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)