Skip to content

Commit

Permalink
fix: add missing imports (and use stub mode to prevent in future)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 21, 2024
1 parent f56c3b8 commit 4142fe1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/runtime/composables/useLogin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { RawLocation } from "@intlify/vue-router-bridge";
import { ref, computed } from "vue";
import { navigateTo, useNuxtApp } from "#imports";
import { useLocalizeRoute } from "#build/useLocalizeRoute.mjs";
import type { AuthService } from "../../types";

Expand Down
1 change: 1 addition & 0 deletions src/runtime/middleware/auth.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable consistent-return */
import type { RouteLocationNormalized } from 'vue-router';
import { navigateTo, useNuxtApp } from "#imports";
import { useLocalizeRoute } from "#build/useLocalizeRoute.mjs";
import { AuthStatus } from "../utils";

Expand Down
1 change: 1 addition & 0 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { addRouteMiddleware, defineNuxtPlugin } from "#imports";
import { Auth } from "./services/Auth";
import authMiddleware from "./middleware/auth";

Expand Down
1 change: 1 addition & 0 deletions src/runtime/services/AuthStorage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dayjs from 'dayjs/esm';
import { jwtDecode } from 'jwt-decode';
import { useCookie } from "#imports";
import { storeToRefs } from "pinia";
import type { AuthConfig, User, AuthTokens } from "../../types";
import { useAuthStore } from "../store/auth";
Expand Down
1 change: 1 addition & 0 deletions src/runtime/services/HttpService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { $Fetch, FetchContext } from "ofetch";
import { navigateTo, useNuxtApp, useRoute, useRouter } from "#imports";
import { middleTruncate, HTTP_STATUS_UNAUTHORIZED, AuthStatus } from "../utils";
import type { AuthConfig, AuthService } from "../../types";

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "./playground/.nuxt/tsconfig.json"
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit 4142fe1

Please sign in to comment.