diff --git a/src/components/NotificationsList.vue b/src/components/NotificationsList.vue
new file mode 100644
index 0000000..399a149
--- /dev/null
+++ b/src/components/NotificationsList.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Уведомления включены
+
+
+ And choose 'Allow'
+
+ Notifications blocked
+ Браузер не поддерживает уведомления
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/NotificationsListElement.vue b/src/components/NotificationsListElement.vue
new file mode 100644
index 0000000..c680d6d
--- /dev/null
+++ b/src/components/NotificationsListElement.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
+ Title
+ Subtitle
+
+
+
+
+
diff --git a/src/components/PushEnable.vue b/src/components/PushEnable.vue
deleted file mode 100644
index 46e12e8..0000000
--- a/src/components/PushEnable.vue
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Уведомления включены
-
- Уведомления заблокированы.
- Браузер не поддерживает уведомления
-
-
-
-
diff --git a/src/layouts/DefaultLayout.vue b/src/layouts/DefaultLayout.vue
index 3c9dd34..9a67624 100644
--- a/src/layouts/DefaultLayout.vue
+++ b/src/layouts/DefaultLayout.vue
@@ -7,9 +7,9 @@ import BackButton from '@/components/BackButton.vue'
import { useThemeMode } from '@/composables/useThemeMode.ts'
import { THEME_ICONS } from '@/lib/theme.ts'
import NavigationMenu from '@/components/NavigationMenu.vue'
-import PushEnable from '@/components/PushEnable.vue'
import { usePushNotifications } from '@/composables/usePushNotifications.ts'
import ProjectMenu from '@/components/ProjectMenu.vue'
+import NotificationsList from '@/components/NotificationsList.vue'
const router = useRouter()
const route = useRoute()
@@ -22,7 +22,7 @@ const title = 'Ulitka'
const isAuth = computed(() => !!session.value.data)
function goToSignIn() {
- router.push({ path: '/sign-in' })
+ router.push({ path: '/sign-in-otp' })
}
function goToSignUp() {
@@ -66,13 +66,12 @@ const fluid = computed(() => {
Sign In
- Sign Up
-
+
diff --git a/src/lib/auth-client.ts b/src/lib/auth-client.ts
index 53f58fb..5259cd2 100644
--- a/src/lib/auth-client.ts
+++ b/src/lib/auth-client.ts
@@ -1,6 +1,7 @@
import { createAuthClient } from 'better-auth/vue'
+import { emailOTPClient } from 'better-auth/client/plugins'
export const authClient = createAuthClient({
baseURL: window.location.origin,
- plugins: [],
+ plugins: [emailOTPClient()],
})
diff --git a/src/router/index.ts b/src/router/index.ts
index 1cadb71..7aef62e 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -4,11 +4,12 @@ import { issuesRoutes } from '@/router/issues.ts'
import HomeView from '@/views/HomeView.vue'
import VerifyEmailView from '@/views/users/VerifyEmailView.vue'
import SignUpView from '@/views/users/SignUpView.vue'
-import SignInView from '@/views/users/SignInView.vue'
import { authClient } from '@/lib/auth-client.ts'
import { gamesRoutes } from '@/router/games.ts'
import { settingsRoutes } from '@/router/settings.ts'
import { calendarRoutes } from '@/router/calendar.ts'
+import SignInViewOtp from '@/views/users/SignInViewOtp.vue'
+import SignInView from '@/views/users/SignInView.vue'
declare module 'vue-router' {
interface RouteMeta {
@@ -29,6 +30,11 @@ const router = createRouter({
component: HomeView,
meta: { layout: 'Default', fluid: true },
},
+ {
+ name: 'sign-in-otp',
+ path: '/sign-in-otp',
+ component: SignInViewOtp,
+ },
{
name: 'sign-in',
path: '/sign-in',
diff --git a/src/views/Issues/IssueView.vue b/src/views/Issues/IssueView.vue
index e052b0a..e941689 100644
--- a/src/views/Issues/IssueView.vue
+++ b/src/views/Issues/IssueView.vue
@@ -9,9 +9,12 @@ const { ckey } = defineProps
()
-
-
-
+
+
Issue: {{ ckey }}
+
+
+
+
diff --git a/src/views/Issues/IssuesListView.vue b/src/views/Issues/IssuesListView.vue
index 0601bd4..50c59a6 100644
--- a/src/views/Issues/IssuesListView.vue
+++ b/src/views/Issues/IssuesListView.vue
@@ -203,6 +203,7 @@ async function onDeleteBatch() {
+
Issues
{
localStorage.removeItem(REMEMBERED_EMAIL_KEY)
}
}
-
- console.log(data)
- console.log(error)
}
-
+
sign in
diff --git a/src/views/users/SignInViewOtp.vue b/src/views/users/SignInViewOtp.vue
new file mode 100644
index 0000000..99b97fc
--- /dev/null
+++ b/src/views/users/SignInViewOtp.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
sign in
+
+
+
+
+ Sign in
+
+
Send Code
+
+
+
+
+
+
diff --git a/src/views/users/SignUpView.vue b/src/views/users/SignUpView.vue
index 8654816..1a72e3e 100644
--- a/src/views/users/SignUpView.vue
+++ b/src/views/users/SignUpView.vue
@@ -24,7 +24,7 @@ const signUp = async () => {
-
+