mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 18:02:55 -05:00
Compare commits
7 Commits
dark-date-
...
dark-admin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bec76285c | ||
|
|
506eba30d4 | ||
|
|
1a4309ca69 | ||
|
|
dccf69293d | ||
|
|
9a34d48906 | ||
|
|
309f20f548 | ||
|
|
7be2646f00 |
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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 />
|
<NotificationRoot />
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<div class="mt-4 mb-4 text-sm">
|
<div class="mt-4 mb-4 text-sm">
|
||||||
<router-link
|
<router-link
|
||||||
to="/login"
|
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') }}
|
{{ $t('general.back_to_login') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<router-link
|
<router-link
|
||||||
to="forgot-password"
|
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') }}
|
{{ $t('login.forgot_password') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
:attributes="attrs"
|
:attributes="attrs"
|
||||||
:model-config="config"
|
:model-config="config"
|
||||||
:masks="masks"
|
:masks="masks"
|
||||||
|
:is-dark="isDarkModeOn"
|
||||||
:locale="global.locale"
|
:locale="global.locale"
|
||||||
>
|
>
|
||||||
<template
|
<template
|
||||||
@@ -72,7 +73,7 @@
|
|||||||
|
|
||||||
<template v-if="showExtraOptions" #footer>
|
<template v-if="showExtraOptions" #footer>
|
||||||
<div
|
<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)">
|
<button type="button" class="extra-button" @click="moveToDate(sourceDate)">
|
||||||
{{ global.t('date_picker.same_day') }}
|
{{ global.t('date_picker.same_day') }}
|
||||||
@@ -146,7 +147,7 @@ const props = defineProps({
|
|||||||
defaultInputClass: {
|
defaultInputClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default:
|
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: {
|
time24hr: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -163,7 +164,7 @@ const props = defineProps({
|
|||||||
sourceDate: {
|
sourceDate: {
|
||||||
type: [String, Date],
|
type: [String, Date],
|
||||||
default: () => new Date(),
|
default: () => new Date(),
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue'])
|
||||||
@@ -175,6 +176,9 @@ const vCalendar = ref(null)
|
|||||||
const hasIconSlot = computed(() => {
|
const hasIconSlot = computed(() => {
|
||||||
return !!slots.icon
|
return !!slots.icon
|
||||||
})
|
})
|
||||||
|
const isDarkModeOn = computed(() =>
|
||||||
|
document.documentElement.classList.contains('dark')
|
||||||
|
)
|
||||||
|
|
||||||
const computedContainerClass = computed(() => {
|
const computedContainerClass = computed(() => {
|
||||||
let containerClass = `${props.containerClass} `
|
let containerClass = `${props.containerClass} `
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<path
|
<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"
|
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"
|
fill="white"
|
||||||
|
class="dark:fill-gray-900"
|
||||||
fill-opacity="0.1"
|
fill-opacity="0.1"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<!-- <SiteSidebar /> -->
|
<!-- <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 />
|
<router-view />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="
|
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 "
|
||||||
min-h-screen
|
|
||||||
bg-gray-200
|
|
||||||
flex flex-col
|
|
||||||
justify-center
|
|
||||||
py-12
|
|
||||||
sm:px-6
|
|
||||||
lg:px-8
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<NotificationRoot />
|
<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
|
<MainLogo
|
||||||
v-if="!customerLogo"
|
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
|
<img
|
||||||
v-else
|
v-else
|
||||||
:src="customerLogo"
|
: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>
|
||||||
|
|
||||||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0">
|
<div class="px-4 mt-8 sm:mx-auto sm:w-full sm:max-w-md sm:px-0">
|
||||||
<div class="bg-white py-8 px-4 shadow rounded-lg sm:px-10">
|
<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 />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
:to="`/${globalStore.companySlug}${item.link}`"
|
:to="`/${globalStore.companySlug}${item.link}`"
|
||||||
:class="[
|
:class="[
|
||||||
hasActiveUrl(item.link)
|
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',
|
: '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',
|
'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">
|
<div class="mt-4 mb-4 text-sm">
|
||||||
<router-link
|
<router-link
|
||||||
to="login"
|
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') }}
|
{{ $t('general.back_to_login') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ name: 'customer.forgot-password' }"
|
: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') }}
|
{{ $t('login.forgot_password') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
Reference in New Issue
Block a user