mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix actionable + lightmode
This commit is contained in:
@@ -251,7 +251,7 @@ const { data: maxProjects } = useFetch("/api/user/max_projects", {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="w-full flex mt-4">
|
<div class="w-full flex mt-4">
|
||||||
<LyxUiButton type="outline" class="w-full text-center text-[.8rem]">
|
<LyxUiButton @click="generatePDF()" type="outline" class="w-full text-center text-[.8rem]">
|
||||||
Export report
|
Export report
|
||||||
</LyxUiButton>
|
</LyxUiButton>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import type { ButtonType } from '../LyxUi/Button.vue';
|
||||||
|
|
||||||
const emit = defineEmits(['success', 'cancel'])
|
const emit = defineEmits(['success', 'cancel'])
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
buttonType: string,
|
buttonType: ButtonType,
|
||||||
message: string,
|
message: string,
|
||||||
deleteData: { isAll: boolean, visits: boolean, sessions: boolean, events: boolean, domain: string }
|
deleteData: { isAll: boolean, visits: boolean, sessions: boolean, events: boolean, domain: string }
|
||||||
}>();
|
}>();
|
||||||
@@ -47,7 +48,7 @@ async function deleteData() {
|
|||||||
overlay: {
|
overlay: {
|
||||||
background: 'bg-lyx-background/85'
|
background: 'bg-lyx-background/85'
|
||||||
},
|
},
|
||||||
background: 'bg-lyx-widget',
|
background: 'bg-lyx-lightmode-widget dark:bg-lyx-widget',
|
||||||
ring: 'border-solid border-[1px] border-[#262626]'
|
ring: 'border-solid border-[1px] border-[#262626]'
|
||||||
}">
|
}">
|
||||||
<div class="h-full flex flex-col gap-2 p-4">
|
<div class="h-full flex flex-col gap-2 p-4">
|
||||||
@@ -71,7 +72,8 @@ async function deleteData() {
|
|||||||
|
|
||||||
<div v-if="!isDone" class="flex justify-end gap-2">
|
<div v-if="!isDone" class="flex justify-end gap-2">
|
||||||
<LyxUiButton type="secondary" @click="emit('cancel')"> Cancel </LyxUiButton>
|
<LyxUiButton type="secondary" @click="emit('cancel')"> Cancel </LyxUiButton>
|
||||||
<LyxUiButton :disabled="!canDelete" @click="canDelete ? deleteData() : () => { }" :type="buttonType"> Confirm </LyxUiButton>
|
<LyxUiButton :disabled="!canDelete" @click="canDelete ? deleteData() : () => { }" :type="buttonType">
|
||||||
|
Confirm </LyxUiButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="isDone" class="flex justify-end w-full">
|
<div v-if="isDone" class="flex justify-end w-full">
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export function getDefaultSnapshots(project_id: TProjectSnapshot['project_id'],
|
|||||||
project_id,
|
project_id,
|
||||||
_id: '___allTime' as any,
|
_id: '___allTime' as any,
|
||||||
name: 'All Time',
|
name: 'All Time',
|
||||||
from: new Date(project_created_at.toString()),
|
from: fns.addMinutes(fns.startOfMonth(new Date(project_created_at.toString())), -new Date().getTimezoneOffset()),
|
||||||
to: new Date(Date.now()),
|
to: new Date(Date.now()),
|
||||||
color: '#9362FF',
|
color: '#9362FF',
|
||||||
default: true
|
default: true
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class DateService {
|
|||||||
if (slice === 'hour') return fns.format(date, 'HH:mm');
|
if (slice === 'hour') return fns.format(date, 'HH:mm');
|
||||||
if (slice === 'day') return fns.format(date, 'dd/MM');
|
if (slice === 'day') return fns.format(date, 'dd/MM');
|
||||||
if (slice === 'week') return fns.format(date, 'dd/MM');
|
if (slice === 'week') return fns.format(date, 'dd/MM');
|
||||||
if (slice === 'month') return fns.format(date, 'MM MMMM');
|
if (slice === 'month') return fns.format(date, 'MMMM');
|
||||||
if (slice === 'year') return fns.format(date, 'YYYY');
|
if (slice === 'year') return fns.format(date, 'YYYY');
|
||||||
return iso;
|
return iso;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user