mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 09:52:55 -05:00
Compare commits
7 Commits
dark-wizar
...
dark-admin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bec76285c | ||
|
|
506eba30d4 | ||
|
|
1a4309ca69 | ||
|
|
dccf69293d | ||
|
|
9a34d48906 | ||
|
|
309f20f548 | ||
|
|
7be2646f00 |
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="grid h-screen grid-cols-12 overflow-y-hidden bg-gray-100">
|
||||
<div class="grid h-screen grid-cols-12 overflow-y-hidden bg-gray-100 dark:bg-gray-900">
|
||||
<NotificationRoot />
|
||||
|
||||
<div
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div class="mt-4 mb-4 text-sm">
|
||||
<router-link
|
||||
to="/login"
|
||||
class="text-sm text-primary-400 hover:text-gray-700"
|
||||
class="text-sm text-primary-400 hover:text-gray-700 dark:hover:text-primary-500"
|
||||
>
|
||||
{{ $t('general.back_to_login') }}
|
||||
</router-link>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<div class="mb-4">
|
||||
<router-link
|
||||
to="forgot-password"
|
||||
class="text-sm text-primary-400 hover:text-gray-700"
|
||||
class="text-sm text-primary-400 hover:text-gray-700 dark:hover:text-primary-500"
|
||||
>
|
||||
{{ $t('login.forgot_password') }}
|
||||
</router-link>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
:attributes="attrs"
|
||||
:model-config="config"
|
||||
:masks="masks"
|
||||
:is-dark="isDarkModeOn"
|
||||
:locale="global.locale"
|
||||
>
|
||||
<template
|
||||
@@ -72,7 +73,7 @@
|
||||
|
||||
<template v-if="showExtraOptions" #footer>
|
||||
<div
|
||||
class="bg-gray-100 grid grid-cols-3 gap-2 p-2 border-t rounded-b-lg"
|
||||
class="bg-gray-100 dark:bg-gray-800 grid grid-cols-3 gap-2 p-2 border-t dark:border-gray-500 rounded-b-lg"
|
||||
>
|
||||
<button type="button" class="extra-button" @click="moveToDate(sourceDate)">
|
||||
{{ global.t('date_picker.same_day') }}
|
||||
@@ -146,7 +147,7 @@ const props = defineProps({
|
||||
defaultInputClass: {
|
||||
type: String,
|
||||
default:
|
||||
'border-2 font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-200 rounded-md text-black',
|
||||
'border-2 dark:bg-gray-700 dark:border-gray-600 dark:text-white font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-200 rounded-md text-black',
|
||||
},
|
||||
time24hr: {
|
||||
type: Boolean,
|
||||
@@ -163,7 +164,7 @@ const props = defineProps({
|
||||
sourceDate: {
|
||||
type: [String, Date],
|
||||
default: () => new Date(),
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
@@ -175,6 +176,9 @@ const vCalendar = ref(null)
|
||||
const hasIconSlot = computed(() => {
|
||||
return !!slots.icon
|
||||
})
|
||||
const isDarkModeOn = computed(() =>
|
||||
document.documentElement.classList.contains('dark')
|
||||
)
|
||||
|
||||
const computedContainerClass = computed(() => {
|
||||
let containerClass = `${props.containerClass} `
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<path
|
||||
d="M690 4.08004C518 -9.91998 231 4.08004 -6 176.361L231 197.08L1170 219.08C1113.33 175.747 909.275 21.928 690 4.08004Z"
|
||||
fill="white"
|
||||
class="dark:fill-gray-900"
|
||||
fill-opacity="0.1"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<!-- <SiteSidebar /> -->
|
||||
|
||||
<main class="mt-16 pb-16 h-screen overflow-y-auto min-h-0">
|
||||
<main class="h-screen min-h-0 pb-16 mt-16 overflow-y-auto">
|
||||
<router-view />
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@@ -1,31 +1,24 @@
|
||||
<template>
|
||||
<div
|
||||
class="
|
||||
min-h-screen
|
||||
bg-gray-200
|
||||
flex flex-col
|
||||
justify-center
|
||||
py-12
|
||||
sm:px-6
|
||||
lg:px-8
|
||||
"
|
||||
class="flex flex-col justify-center h-full min-h-screen py-12 overflow-hidden bg-gray-100 sm:px-6 lg:px-8 dark:bg-gray-800/80 dark:text-white font-base "
|
||||
>
|
||||
<NotificationRoot />
|
||||
|
||||
<div class="sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0">
|
||||
<div class="px-4 sm:mx-auto sm:w-full sm:max-w-md sm:px-0">
|
||||
<MainLogo
|
||||
v-if="!customerLogo"
|
||||
class="block w-48 h-auto max-w-full text-primary-400 mx-auto"
|
||||
class="block w-48 h-auto max-w-full mx-auto text-primary-400"
|
||||
/>
|
||||
<img
|
||||
v-else
|
||||
:src="customerLogo"
|
||||
class="block w-48 h-auto max-w-full text-primary-400 mx-auto"
|
||||
class="block w-48 h-auto max-w-full mx-auto text-primary-400"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0">
|
||||
<div class="bg-white py-8 px-4 shadow rounded-lg sm:px-10">
|
||||
<div class="px-4 mt-8 sm:mx-auto sm:w-full sm:max-w-md sm:px-0">
|
||||
<div class="px-4 py-8 bg-white rounded-lg shadow sm:px-10 dark:from-gray-700/70 dark:to-gray-800/70 dark:bg-transparent dark:backdrop-blur-xl dark:shadow-glass dark:border dark:border-white/10">
|
||||
<BaseDarkHighlight/>
|
||||
<router-view />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
:to="`/${globalStore.companySlug}${item.link}`"
|
||||
:class="[
|
||||
hasActiveUrl(item.link)
|
||||
? 'border-primary-500 text-primary-600 dark:text-primary-400'
|
||||
? 'text-primary-600 border-primary-600 dark:border-primary-400 dark:text-primary-400'
|
||||
: 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-200',
|
||||
'inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium',
|
||||
]"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<div class="mt-4 mb-4 text-sm">
|
||||
<router-link
|
||||
to="login"
|
||||
class="text-sm text-primary-400 hover:text-gray-700"
|
||||
class="text-sm text-primary-400 hover:text-gray-700 dark:hover:text-primary-500"
|
||||
>
|
||||
{{ $t('general.back_to_login') }}
|
||||
</router-link>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<div class="flex items-center justify-between">
|
||||
<router-link
|
||||
:to="{ name: 'customer.forgot-password' }"
|
||||
class="text-sm text-primary-600 hover:text-gray-500"
|
||||
class="text-sm text-primary-400 hover:text-gray-500 dark:hover:text-primary-500"
|
||||
>
|
||||
{{ $t('login.forgot_password') }}
|
||||
</router-link>
|
||||
|
||||
Reference in New Issue
Block a user