fix: remove jank prisma script, and move to generated prisma client

This commit is contained in:
DecDuck
2025-05-08 16:17:23 +10:00
parent 29f3094ad4
commit 125fe9e6e2
60 changed files with 153 additions and 168 deletions

View File

@ -519,7 +519,7 @@
<script setup lang="ts">
import { Bars3Icon, TrashIcon } from "@heroicons/vue/16/solid";
import type { Game, GameVersion } from "@prisma/client";
import type { Game, GameVersion } from "~/prisma/client";
import { micromark } from "micromark";
import {
ArrowTopRightOnSquareIcon,

View File

@ -100,7 +100,7 @@ import { IconsSimpleAuthenticationLogo, IconsSSOLogo } from "#components";
import { Menu, MenuButton, MenuItem, MenuItems } from "@headlessui/vue";
import { EllipsisHorizontalIcon } from "@heroicons/vue/20/solid";
import { CheckIcon, XMarkIcon } from "@heroicons/vue/24/solid";
import type { AuthMec } from "@prisma/client";
import type { AuthMec } from "~/prisma/client";
import type { Component } from "vue";
useHead({

View File

@ -369,7 +369,7 @@ import {
} from "@headlessui/vue";
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/vue/20/solid";
import { TrashIcon, XCircleIcon } from "@heroicons/vue/24/solid";
import type { Invitation } from "@prisma/client";
import type { Invitation } from "~/prisma/client";
import type { SerializeObject } from "nitropack";
import type { DurationLike } from "luxon";
import { DateTime } from "luxon";

View File

@ -18,7 +18,7 @@
<div class="mt-10">
<div>
<AuthSimple v-if="enabledAuths.includes(AuthMec.Simple)" />
<AuthSimple v-if="enabledAuths.includes('Simple' as AuthMec)" />
<div
v-if="enabledAuths.length > 1"
class="py-4 flex flex-row items-center justify-center gap-x-4 font-bold text-sm text-zinc-600"
@ -27,7 +27,7 @@
OR
<span class="h-[1px] grow bg-zinc-600" />
</div>
<AuthOpenID v-if="enabledAuths.includes(AuthMec.OpenID)" />
<AuthOpenID v-if="enabledAuths.includes('OpenID' as AuthMec)" />
</div>
</div>
</div>
@ -43,7 +43,7 @@
</template>
<script setup lang="ts">
import { AuthMec } from "@prisma/client";
import type { AuthMec } from "~/prisma/client";
import DropLogo from "~/components/DropLogo.vue";
const enabledAuths = await $dropFetch("/api/v1/auth");

View File

@ -117,7 +117,7 @@ import {
ArrowUpRightIcon,
} from "@heroicons/vue/20/solid";
import { micromark } from "micromark";
import type { Game } from "@prisma/client";
import type { Game } from "~/prisma/client";
const route = useRoute();
const id = route.params.id.toString();

View File

@ -92,7 +92,7 @@
<script setup lang="ts">
import { TrashIcon, PlusIcon } from "@heroicons/vue/20/solid";
import type { Collection } from "@prisma/client";
import type { Collection } from "~/prisma/client";
const collections = await useCollections();
const collectionCreateOpen = ref(false);

View File

@ -81,7 +81,7 @@
<script setup lang="ts">
import { DocumentIcon } from "@heroicons/vue/24/outline";
import type { Article } from "@prisma/client";
import type { Article } from "~/prisma/client";
import type { SerializeObject } from "nitropack/types";
const { articles } = defineProps<{

View File

@ -170,7 +170,7 @@
<script setup lang="ts">
import { ArrowTopRightOnSquareIcon } from "@heroicons/vue/24/outline";
import { StarIcon } from "@heroicons/vue/24/solid";
import type { Game, GameVersion } from "@prisma/client";
import type { Game, GameVersion } from "~/prisma/client";
import { micromark } from "micromark";
import { DateTime } from "luxon";
import type { SerializeObject } from "nitropack";