mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-20 03:31:13 +10:00
fix: remove jank prisma script, and move to generated prisma client
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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<{
|
||||
|
||||
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user