From fecce70aaa0ba3b2208db90a871cafb3f0ec4a79 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 28 Nov 2023 16:26:55 +0300 Subject: [PATCH] _auth-notused --- src/context/session.tsx | 1 - src/graphql/client/{auth.ts => _auth.ts} | 14 +++++++------- .../mutation/{auth => _auth}/auth-confirm-email.ts | 0 .../mutation/{auth => _auth}/auth-logout.ts | 0 .../mutation/{auth => _auth}/auth-register.ts | 0 .../mutation/{auth => _auth}/auth-send-link.ts | 0 src/graphql/mutation/{auth => _auth}/my-session.ts | 0 .../query/{auth => _auth}/auth-check-email.ts | 0 src/graphql/query/{auth => _auth}/auth-login.ts | 0 src/graphql/query/{auth => _auth}/author-roles.ts | 0 src/stores/auth.ts | 2 +- src/stores/emailChecks.ts | 2 +- 12 files changed, 9 insertions(+), 10 deletions(-) rename src/graphql/client/{auth.ts => _auth.ts} (90%) rename src/graphql/mutation/{auth => _auth}/auth-confirm-email.ts (100%) rename src/graphql/mutation/{auth => _auth}/auth-logout.ts (100%) rename src/graphql/mutation/{auth => _auth}/auth-register.ts (100%) rename src/graphql/mutation/{auth => _auth}/auth-send-link.ts (100%) rename src/graphql/mutation/{auth => _auth}/my-session.ts (100%) rename src/graphql/query/{auth => _auth}/auth-check-email.ts (100%) rename src/graphql/query/{auth => _auth}/auth-login.ts (100%) rename src/graphql/query/{auth => _auth}/author-roles.ts (100%) diff --git a/src/context/session.tsx b/src/context/session.tsx index d25b4067..55467dab 100644 --- a/src/context/session.tsx +++ b/src/context/session.tsx @@ -12,7 +12,6 @@ import { useContext, } from 'solid-js' -import { authApiClient } from '../graphql/client/auth' import { apiClient } from '../graphql/client/core' import { getToken, resetToken, setToken } from '../graphql/privateGraphQLClient' import { showModal } from '../stores/ui' diff --git a/src/graphql/client/auth.ts b/src/graphql/client/_auth.ts similarity index 90% rename from src/graphql/client/auth.ts rename to src/graphql/client/_auth.ts index 66d1cc38..20e29703 100644 --- a/src/graphql/client/auth.ts +++ b/src/graphql/client/_auth.ts @@ -1,13 +1,13 @@ import { ApiError } from '../error' -import authConfirmEmailMutation from '../mutation/auth/auth-confirm-email' -import authLogoutQuery from '../mutation/auth/auth-logout' -import authRegisterMutation from '../mutation/auth/auth-register' -import authSendLinkMutation from '../mutation/auth/auth-send-link' -import mySession from '../mutation/auth/my-session' +import authConfirmEmailMutation from '../mutation/_auth/auth-confirm-email' +import authLogoutQuery from '../mutation/_auth/auth-logout' +import authRegisterMutation from '../mutation/_auth/auth-register' +import authSendLinkMutation from '../mutation/_auth/auth-send-link' +import mySession from '../mutation/_auth/my-session' import { getToken, getPrivateClient } from '../privateGraphQLClient' import { getPublicClient } from '../publicGraphQLClient' -import authCheckEmailQuery from '../query/auth/auth-check-email' -import authLoginQuery from '../query/auth/auth-login' +import authCheckEmailQuery from '../query/_auth/auth-check-email' +import authLoginQuery from '../query/_auth/auth-login' import { ResendVerifyEmailInput, ResetPasswordInput, diff --git a/src/graphql/mutation/auth/auth-confirm-email.ts b/src/graphql/mutation/_auth/auth-confirm-email.ts similarity index 100% rename from src/graphql/mutation/auth/auth-confirm-email.ts rename to src/graphql/mutation/_auth/auth-confirm-email.ts diff --git a/src/graphql/mutation/auth/auth-logout.ts b/src/graphql/mutation/_auth/auth-logout.ts similarity index 100% rename from src/graphql/mutation/auth/auth-logout.ts rename to src/graphql/mutation/_auth/auth-logout.ts diff --git a/src/graphql/mutation/auth/auth-register.ts b/src/graphql/mutation/_auth/auth-register.ts similarity index 100% rename from src/graphql/mutation/auth/auth-register.ts rename to src/graphql/mutation/_auth/auth-register.ts diff --git a/src/graphql/mutation/auth/auth-send-link.ts b/src/graphql/mutation/_auth/auth-send-link.ts similarity index 100% rename from src/graphql/mutation/auth/auth-send-link.ts rename to src/graphql/mutation/_auth/auth-send-link.ts diff --git a/src/graphql/mutation/auth/my-session.ts b/src/graphql/mutation/_auth/my-session.ts similarity index 100% rename from src/graphql/mutation/auth/my-session.ts rename to src/graphql/mutation/_auth/my-session.ts diff --git a/src/graphql/query/auth/auth-check-email.ts b/src/graphql/query/_auth/auth-check-email.ts similarity index 100% rename from src/graphql/query/auth/auth-check-email.ts rename to src/graphql/query/_auth/auth-check-email.ts diff --git a/src/graphql/query/auth/auth-login.ts b/src/graphql/query/_auth/auth-login.ts similarity index 100% rename from src/graphql/query/auth/auth-login.ts rename to src/graphql/query/_auth/auth-login.ts diff --git a/src/graphql/query/auth/author-roles.ts b/src/graphql/query/_auth/author-roles.ts similarity index 100% rename from src/graphql/query/auth/author-roles.ts rename to src/graphql/query/_auth/author-roles.ts diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 76af4c80..0ff505e7 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -1,4 +1,4 @@ -import { authApiClient as apiClient } from '../graphql/client/auth' +import { authApiClient as apiClient } from '../graphql/client/_auth' export const register = async ({ name, diff --git a/src/stores/emailChecks.ts b/src/stores/emailChecks.ts index 3ea25736..130776c4 100644 --- a/src/stores/emailChecks.ts +++ b/src/stores/emailChecks.ts @@ -1,6 +1,6 @@ import { createSignal } from 'solid-js' -import { authApiClient as apiClient } from '../graphql/client/auth' +import { authApiClient as apiClient } from '../graphql/client/_auth' const [emailChecks, setEmailChecks] = createSignal<{ [email: string]: boolean }>({})