|
2 | 2 | <div v-if="!plugin">No Auth Plugin</div>
|
3 | 3 | <div v-else class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8">
|
4 | 4 | <div class="sm:mx-auto sm:w-full sm:max-w-md">
|
5 |
| - <h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900"> |
| 5 | + <h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-gray-50"> |
6 | 6 | {{ title }}
|
7 | 7 | </h2>
|
8 |
| - <p v-if="Object.keys(authProviderFormTabs).length > 1" class="mt-4 text-center text-sm text-gray-600"> |
| 8 | + <p v-if="Object.keys(authProviderFormTabs).length > 1" class="mt-4 text-center text-sm text-gray-600 dark:text-gray-300"> |
9 | 9 | <span class="relative z-0 inline-flex shadow-sm rounded-md">
|
10 | 10 | <a v-for="(tab,name) in authProviderFormTabs" v-href="{ provider:tab }" @click="selectedProvider = tab"
|
11 | 11 | :class="[tab === '' || tab === firstFormLayout.name ? 'rounded-l-md' : tab === lastFormLayout.name ? 'rounded-r-md -ml-px' : '-ml-px',
|
12 |
| - selectedProvider === tab ? 'z-10 outline-none ring-1 ring-indigo-500 border-indigo-500' : '', 'cursor-pointer relative inline-flex items-center px-4 py-1 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50']"> |
| 12 | + selectedProvider === tab ? 'z-10 outline-none ring-1 ring-indigo-500 border-indigo-500' : '', 'cursor-pointer relative inline-flex items-center px-4 py-1 border border-gray-300 dark:border-gray-600 bg-white dark:bg-black text-sm font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900']"> |
13 | 13 | {{name}}
|
14 | 14 | </a>
|
15 | 15 | </span>
|
16 | 16 | </p>
|
17 | 17 | </div>
|
18 | 18 | <div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
|
19 | 19 | <ErrorSummary v-if="errorSummary" class="mb-3" :errorSummary="errorSummary" />
|
20 |
| - <div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10"> |
| 20 | + <div class="bg-white dark:bg-black py-8 px-4 shadow sm:rounded-lg sm:px-10"> |
21 | 21 | <form v-if="formLayout.length" @submit.prevent="submit">
|
22 | 22 | <AutoFormFields :modelValue="modelValue" :formLayout="formLayout" :api="api" :hideSummary="true"
|
23 | 23 | divide-class="" space-class="space-y-6" />
|
|
29 | 29 | <div v-if="oauthProviders.length" class="mt-6">
|
30 | 30 | <div class="relative">
|
31 | 31 | <div class="absolute inset-0 flex items-center">
|
32 |
| - <div class="w-full border-t border-gray-300"></div> |
| 32 | + <div class="w-full border-t border-gray-300 dark:border-gray-600"></div> |
33 | 33 | </div>
|
34 | 34 | <div class="relative flex justify-center text-sm">
|
35 |
| - <span class="px-2 bg-white text-gray-500"> |
| 35 | + <span class="px-2 bg-white text-gray-500 dark:text-gray-400"> |
36 | 36 | Or continue with
|
37 | 37 | </span>
|
38 | 38 | </div>
|
39 | 39 | </div>
|
40 | 40 | <div class="mt-6 grid grid-cols-3 gap-3">
|
41 | 41 | <div v-for="provider in oauthProviders">
|
42 | 42 | <a :href="baseUrl + provider.navItem.href + '?continue=' + baseUri" :title="getLabel(provider)"
|
43 |
| - class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> |
44 |
| - <Icon v-if="provider.icon" :image="provider.icon" class="h-5 w-5 text-gray-700" /> |
45 |
| - <svg v-else class="h-5 w-5 text-gray-700" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> |
| 43 | + class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-black text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-900"> |
| 44 | + <Icon v-if="provider.icon" :image="provider.icon" class="h-5 w-5 text-gray-700 dark:text-gray-200" /> |
| 45 | + <svg v-else class="h-5 w-5 text-gray-700 dark:text-gray-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> |
46 | 46 | <path d="M16 8a5 5 0 1 0 5 5a5 5 0 0 0-5-5z" fill="currentColor"/>
|
47 | 47 | <path d="M16 2a14 14 0 1 0 14 14A14.016 14.016 0 0 0 16 2zm7.992 22.926A5.002 5.002 0 0 0 19 20h-6a5.002 5.002 0 0 0-4.992 4.926a12 12 0 1 1 15.985 0z" fill="currentColor"/>
|
48 | 48 | </svg>
|
|
0 commit comments