mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-29 12:41:10 -04:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			dark-base-
			...
			dark-globa
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3defe3fa29 | |||
| c5acf1343e | |||
| 0321ca5515 | |||
| bd345949e5 | |||
| b4b00ebdd6 | 
| @ -41,6 +41,11 @@ | |||||||
|           w-[300px] |           w-[300px] | ||||||
|           h-[200px] |           h-[200px] | ||||||
|           right-0 |           right-0 | ||||||
|  |           dark:border-white/10 | ||||||
|  |           dark:text-white | ||||||
|  |           dark:bg-gray-800/[.95] | ||||||
|  |           dark:shadow-glass | ||||||
|  |           dark:backdrop-blur-xl | ||||||
|         " |         " | ||||||
|       > |       > | ||||||
|         <div |         <div | ||||||
| @ -68,7 +73,7 @@ | |||||||
|             <div |             <div | ||||||
|               v-for="(customer, index) in usersStore.customerList" |               v-for="(customer, index) in usersStore.customerList" | ||||||
|               :key="index" |               :key="index" | ||||||
|               class="p-2 hover:bg-gray-100 cursor-pointer rounded-md" |               class="p-2 hover:bg-gray-100 cursor-pointer rounded-md dark:hover:bg-gray-700/40" | ||||||
|             > |             > | ||||||
|               <router-link |               <router-link | ||||||
|                 :to="{ path: `/admin/customers/${customer.id}/view` }" |                 :to="{ path: `/admin/customers/${customer.id}/view` }" | ||||||
| @ -87,6 +92,7 @@ | |||||||
|                     bg-gray-200 |                     bg-gray-200 | ||||||
|                     rounded-full |                     rounded-full | ||||||
|                     text-primary-500 |                     text-primary-500 | ||||||
|  |                     dark:bg-gray-600 | ||||||
|                   " |                   " | ||||||
|                 > |                 > | ||||||
|                   {{ initGenerator(customer.name) }} |                   {{ initGenerator(customer.name) }} | ||||||
| @ -116,7 +122,7 @@ | |||||||
|             <div |             <div | ||||||
|               v-for="(user, index) in usersStore.userList" |               v-for="(user, index) in usersStore.userList" | ||||||
|               :key="index" |               :key="index" | ||||||
|               class="p-2 hover:bg-gray-100 cursor-pointer rounded-md" |               class="p-2 hover:bg-gray-100 cursor-pointer rounded-md dark:hover:bg-gray-700/40" | ||||||
|             > |             > | ||||||
|               <router-link |               <router-link | ||||||
|                 :to="{ path: `/admin/users/${user.id}/edit` }" |                 :to="{ path: `/admin/users/${user.id}/edit` }" | ||||||
| @ -135,6 +141,7 @@ | |||||||
|                     bg-gray-200 |                     bg-gray-200 | ||||||
|                     rounded-full |                     rounded-full | ||||||
|                     text-primary-500 |                     text-primary-500 | ||||||
|  |                     dark:bg-gray-600 | ||||||
|                   " |                   " | ||||||
|                 > |                 > | ||||||
|                   {{ initGenerator(user.name) }} |                   {{ initGenerator(user.name) }} | ||||||
|  | |||||||
| @ -39,6 +39,8 @@ $base-content-placeholders-border-radius: 6px !default; | |||||||
| $base-content-placeholders-line-height: 15px !default; | $base-content-placeholders-line-height: 15px !default; | ||||||
| $base-content-placeholders-spacing: 10px !default; | $base-content-placeholders-spacing: 10px !default; | ||||||
|  |  | ||||||
|  | $base-content-placeholders-primary-color-dark: rgb(71, 85, 105) !default; | ||||||
|  | $base-content-placeholders-secondary-color-dark: rgb(71, 85, 105) !default; | ||||||
| // Animations | // Animations | ||||||
| @keyframes vueContentPlaceholdersAnimation { | @keyframes vueContentPlaceholdersAnimation { | ||||||
|   0% { |   0% { | ||||||
| @ -57,6 +59,10 @@ $base-content-placeholders-spacing: 10px !default; | |||||||
|   min-height: $base-content-placeholders-line-height; |   min-height: $base-content-placeholders-line-height; | ||||||
|   background: $base-content-placeholders-secondary-color; |   background: $base-content-placeholders-secondary-color; | ||||||
|  |  | ||||||
|  |   .dark & { | ||||||
|  |     background: $base-content-placeholders-secondary-color-dark; | ||||||
|  |   } | ||||||
|  |  | ||||||
|   .base-content-placeholders-is-rounded & { |   .base-content-placeholders-is-rounded & { | ||||||
|     border-radius: $base-content-placeholders-border-radius; |     border-radius: $base-content-placeholders-border-radius; | ||||||
|   } |   } | ||||||
| @ -86,6 +92,15 @@ $base-content-placeholders-spacing: 10px !default; | |||||||
|     animation-name: vueContentPlaceholdersAnimation; |     animation-name: vueContentPlaceholdersAnimation; | ||||||
|     animation-timing-function: linear; |     animation-timing-function: linear; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   .dark .base-content-placeholders-is-animated &::before { | ||||||
|  |     background: linear-gradient( | ||||||
|  |       to right, | ||||||
|  |       transparent 0%, | ||||||
|  |       darken($base-content-placeholders-secondary-color-dark, 5%) 15%, | ||||||
|  |       transparent 30% | ||||||
|  |     ); | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| @mixin base-content-placeholders-spacing { | @mixin base-content-placeholders-spacing { | ||||||
| @ -156,6 +171,10 @@ $base-content-placeholders-spacing: 10px !default; | |||||||
|   min-height: $base-content-placeholders-line-height; |   min-height: $base-content-placeholders-line-height; | ||||||
|   background: $base-content-placeholders-secondary-color; |   background: $base-content-placeholders-secondary-color; | ||||||
|  |  | ||||||
|  |   .dark & { | ||||||
|  |     background: $base-content-placeholders-secondary-color-dark; | ||||||
|  |   } | ||||||
|  |    | ||||||
|   .base-content-placeholders-is-animated &::before { |   .base-content-placeholders-is-animated &::before { | ||||||
|     content: ''; |     content: ''; | ||||||
|     position: absolute; |     position: absolute; | ||||||
| @ -177,6 +196,14 @@ $base-content-placeholders-spacing: 10px !default; | |||||||
|     animation-timing-function: linear; |     animation-timing-function: linear; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |     .dark .base-content-placeholders-is-animated &::before { | ||||||
|  |       background: linear-gradient( | ||||||
|  |       to right, | ||||||
|  |       transparent 0%, | ||||||
|  |       darken($base-content-placeholders-secondary-color-dark, 5%) 15%, | ||||||
|  |       transparent 30% | ||||||
|  |     ); | ||||||
|  |   } | ||||||
|   // @include base-content-placeholders-spacing; |   // @include base-content-placeholders-spacing; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | |||||||
| @ -30,8 +30,13 @@ | |||||||
|           leave-to="opacity-0" |           leave-to="opacity-0" | ||||||
|         > |         > | ||||||
|           <DialogOverlay |           <DialogOverlay | ||||||
|             class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75" |             class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75 dark:backdrop-blur-xl dark:bg-gray-900/80" | ||||||
|  |           > | ||||||
|  |            <BaseDarkHighlight | ||||||
|  |             class="!bg-highlight/[.17] !top-1/2 h-60 -translate-y-1/2 mt-5" | ||||||
|  |             :class="dialogSizeClasses" | ||||||
|           /> |           /> | ||||||
|  |           </DialogOverlay> | ||||||
|         </TransitionChild> |         </TransitionChild> | ||||||
|  |  | ||||||
|         <!-- This element is to trick the browser into centering the modal contents. --> |         <!-- This element is to trick the browser into centering the modal contents. --> | ||||||
| @ -64,6 +69,11 @@ | |||||||
|               shadow-xl |               shadow-xl | ||||||
|               sm:my-8 sm:align-middle sm:w-full sm:p-6 |               sm:my-8 sm:align-middle sm:w-full sm:p-6 | ||||||
|               relative |               relative | ||||||
|  |               dark:backdrop-blur-xl | ||||||
|  |               dark:shadow-glass | ||||||
|  |               dark:border | ||||||
|  |               dark:border-white/10 | ||||||
|  |               dark:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="dialogSizeClasses" |             :class="dialogSizeClasses" | ||||||
|           > |           > | ||||||
| @ -80,31 +90,31 @@ | |||||||
|                   rounded-full |                   rounded-full | ||||||
|                 " |                 " | ||||||
|                 :class="{ |                 :class="{ | ||||||
|                   'bg-green-100': dialogStore.variant === 'primary', |                   'bg-green-100 dark:bg-primary-500': dialogStore.variant === 'primary', | ||||||
|                   'bg-red-100': dialogStore.variant === 'danger', |                   'bg-red-100 dark:bg-red-500': dialogStore.variant === 'danger', | ||||||
|                 }" |                 }" | ||||||
|               > |               > | ||||||
|                 <BaseIcon |                 <BaseIcon | ||||||
|                   v-if="dialogStore.variant === 'primary'" |                   v-if="dialogStore.variant === 'primary'" | ||||||
|                   name="CheckIcon" |                   name="CheckIcon" | ||||||
|                   class="w-6 h-6 text-green-600" |                   class="w-6 h-6 text-green-600 dark:text-white" | ||||||
|                 /> |                 /> | ||||||
|                 <BaseIcon |                 <BaseIcon | ||||||
|                   v-else |                   v-else | ||||||
|                   name="ExclamationIcon" |                   name="ExclamationIcon" | ||||||
|                   class="w-6 h-6 text-red-600" |                   class="w-6 h-6 text-red-600 dark:text-white" | ||||||
|                   aria-hidden="true" |                   aria-hidden="true" | ||||||
|                 /> |                 /> | ||||||
|               </div> |               </div> | ||||||
|               <div class="mt-3 text-center sm:mt-5"> |               <div class="mt-3 text-center sm:mt-5"> | ||||||
|                 <DialogTitle |                 <DialogTitle | ||||||
|                   as="h3" |                   as="h3" | ||||||
|                   class="text-lg font-medium leading-6 text-gray-900" |                   class="text-lg font-medium leading-6 text-gray-900 dark:text-white" | ||||||
|                 > |                 > | ||||||
|                   {{ dialogStore.title }} |                   {{ dialogStore.title }} | ||||||
|                 </DialogTitle> |                 </DialogTitle> | ||||||
|                 <div class="mt-2"> |                 <div class="mt-2"> | ||||||
|                   <p class="text-sm text-gray-500"> |                   <p class="text-sm text-gray-500 dark:text-gray-400"> | ||||||
|                     {{ dialogStore.message }} |                     {{ dialogStore.message }} | ||||||
|                   </p> |                   </p> | ||||||
|                 </div> |                 </div> | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ | |||||||
|     leave-from-class="opacity-100" |     leave-from-class="opacity-100" | ||||||
|     leave-to-class="opacity-0" |     leave-to-class="opacity-0" | ||||||
|   > |   > | ||||||
|     <div v-show="show" class="relative z-10 p-4 md:p-8 bg-gray-200 rounded"> |     <div v-show="show" class="relative z-10 p-4 md:p-8 bg-gray-200 rounded dark:bg-gray-800"> | ||||||
|       <slot name="filter-header" /> |       <slot name="filter-header" /> | ||||||
|  |  | ||||||
|       <label |       <label | ||||||
| @ -20,6 +20,7 @@ | |||||||
|           hover:text-gray-700 |           hover:text-gray-700 | ||||||
|           top-2.5 |           top-2.5 | ||||||
|           right-3.5 |           right-3.5 | ||||||
|  |           dark:text-gray-300 | ||||||
|         " |         " | ||||||
|         @click="$emit('clear')" |         @click="$emit('clear')" | ||||||
|       > |       > | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ | |||||||
|  |  | ||||||
|       <Switch |       <Switch | ||||||
|         v-model="enabled" |         v-model="enabled" | ||||||
|         :class="enabled ? 'bg-primary-500' : 'bg-gray-300'" |         :class="enabled ? 'bg-primary-500' : 'bg-gray-300 dark:bg-gray-900'" | ||||||
|         class=" |         class=" | ||||||
|           relative |           relative | ||||||
|           inline-flex |           inline-flex | ||||||
| @ -21,7 +21,11 @@ | |||||||
|         v-bind="$attrs" |         v-bind="$attrs" | ||||||
|       > |       > | ||||||
|         <span |         <span | ||||||
|           :class="enabled ? 'translate-x-6' : 'translate-x-1'" |           :class=" | ||||||
|  |             enabled | ||||||
|  |               ? 'translate-x-6 dark:bg-white' | ||||||
|  |               : 'translate-x-1 dark:bg-gray-500' | ||||||
|  |           " | ||||||
|           class=" |           class=" | ||||||
|             inline-block |             inline-block | ||||||
|             w-4 |             w-4 | ||||||
|  | |||||||
| @ -5,12 +5,12 @@ | |||||||
|     <div class="flex flex-col"> |     <div class="flex flex-col"> | ||||||
|       <SwitchLabel |       <SwitchLabel | ||||||
|         as="p" |         as="p" | ||||||
|         class="p-0 mb-1 text-sm leading-snug text-black font-medium" |         class="p-0 mb-1 text-sm leading-snug text-black font-medium dark:text-white" | ||||||
|         passive |         passive | ||||||
|       > |       > | ||||||
|         {{ title }} |         {{ title }} | ||||||
|       </SwitchLabel> |       </SwitchLabel> | ||||||
|       <SwitchDescription class="text-sm text-gray-500"> |       <SwitchDescription class="text-sm text-gray-500 dark:text-gray-400"> | ||||||
|         {{ description }} |         {{ description }} | ||||||
|       </SwitchDescription> |       </SwitchDescription> | ||||||
|     </div> |     </div> | ||||||
| @ -18,7 +18,7 @@ | |||||||
|       :disabled="disabled" |       :disabled="disabled" | ||||||
|       :model-value="modelValue" |       :model-value="modelValue" | ||||||
|       :class="[ |       :class="[ | ||||||
|         modelValue ? 'bg-primary-500' : 'bg-gray-200', |         modelValue ? 'bg-primary-500' : 'bg-gray-200 dark:bg-gray-900', | ||||||
|         'ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500', |         'ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500', | ||||||
|       ]" |       ]" | ||||||
|       @update:modelValue="onUpdate" |       @update:modelValue="onUpdate" | ||||||
| @ -26,7 +26,7 @@ | |||||||
|       <span |       <span | ||||||
|         aria-hidden="true" |         aria-hidden="true" | ||||||
|         :class="[ |         :class="[ | ||||||
|           modelValue ? 'translate-x-5' : 'translate-x-0', |           modelValue ? 'translate-x-5 dark:bg-white' : 'translate-x-0 dark:bg-gray-500', | ||||||
|           'inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200', |           'inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200', | ||||||
|         ]" |         ]" | ||||||
|       /> |       /> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	