mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
* feat: nginx + torrential basics & services system * fix: lint + i18n * fix: update torrential to remove openssl * feat: add torrential to Docker build * feat: move to self hosted runner * fix: move off self-hosted runner * fix: update nginx.conf * feat: torrential cache invalidation * fix: update torrential for cache invalidation * feat: integrity check task * fix: lint * feat: move to version ids * fix: client fixes and client-side checks * feat: new depot apis and version id fixes * feat: update torrential * feat: droplet bump and remove unsafe update functions * fix: lint * feat: v4 featureset: emulators, multi-launch commands * fix: lint * fix: mobile ui for game editor * feat: launch options * fix: lint * fix: remove axios, use $fetch * feat: metadata and task api improvements * feat: task actions * fix: slight styling issue * feat: fix style and lints * feat: totp backend routes * feat: oidc groups * fix: update drop-base * feat: creation of passkeys & totp * feat: totp signin * feat: webauthn mfa/signin * feat: launch selecting ui * fix: manually running tasks * feat: update add company game modal to use new SelectorGame * feat: executor selector * fix(docker): update rust to rust nightly for torrential build (#305) * feat: new version ui * feat: move package lookup to build time to allow for deno dev * fix: lint * feat: localisation cleanup * feat: apply localisation cleanup * feat: potential i18n refactor logic * feat: remove args from commands * fix: lint * fix: lockfile --------- Co-authored-by: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com>
73 lines
2.1 KiB
Vue
73 lines
2.1 KiB
Vue
<template>
|
|
<div class="flex min-h-screen flex-1 bg-zinc-900">
|
|
<div
|
|
class="flex flex-1 flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24"
|
|
>
|
|
<div class="mx-auto w-full max-w-sm lg:w-96">
|
|
<div>
|
|
<DropLogo class="h-10 w-auto" />
|
|
<h2
|
|
class="mt-8 text-2xl font-bold font-display leading-9 tracking-tight text-zinc-100"
|
|
>
|
|
{{
|
|
superlevel
|
|
? "Sign in to access protected action"
|
|
: $t("auth.signin.title")
|
|
}}
|
|
</h2>
|
|
<p class="mt-2 text-sm leading-6 text-zinc-400">
|
|
{{
|
|
superlevel
|
|
? "We need you to sign in again for security reasons while attempting to access more sensitive actions."
|
|
: $t("auth.signin.noAccount")
|
|
}}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="mt-10">
|
|
<div>
|
|
<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"
|
|
>
|
|
<span class="h-[1px] grow bg-zinc-600" />
|
|
{{ $t("auth.signin.or") }}
|
|
<span class="h-[1px] grow bg-zinc-600" />
|
|
</div>
|
|
<AuthOpenID v-if="enabledAuths.includes('OpenID' as AuthMec)" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="relative hidden w-0 flex-1 lg:block">
|
|
<img
|
|
src="/wallpapers/signin.jpg"
|
|
class="absolute inset-0 h-full w-full object-cover"
|
|
alt=""
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { AuthMec } from "~/prisma/client/enums";
|
|
import DropLogo from "~/components/DropLogo.vue";
|
|
|
|
const { t } = useI18n();
|
|
const enabledAuths = await $dropFetch("/api/v1/auth");
|
|
|
|
const route = useRoute();
|
|
const superlevel = route.query.superlevel;
|
|
|
|
definePageMeta({
|
|
layout: false,
|
|
});
|
|
|
|
useHead({
|
|
title: superlevel
|
|
? "Sign in to access protected action"
|
|
: t("auth.signin.pageTitle"),
|
|
});
|
|
</script>
|