diff --git a/dashboard/components/dashboard/ActionableChart.vue b/dashboard/components/dashboard/ActionableChart.vue index 91ccc78..e5ca037 100644 --- a/dashboard/components/dashboard/ActionableChart.vue +++ b/dashboard/components/dashboard/ActionableChart.vue @@ -135,7 +135,7 @@ const chartData = ref>({ type: 'bubble', stack: 'combined', borderColor: ["#fbbf24"] - }, + } ], }); @@ -367,6 +367,11 @@ const legendClasses = ref([ {{ (currentTooltipData as any)[tooltipNameIndex[index]] }} +
+
Unique visitors is greater than visits.
+
This can indicate bot traffic.
+
diff --git a/dashboard/components/dialog/ConfirmLogout.vue b/dashboard/components/dialog/ConfirmLogout.vue new file mode 100644 index 0000000..c1587a4 --- /dev/null +++ b/dashboard/components/dialog/ConfirmLogout.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/dashboard/components/dialog/CreateSnapshot.vue b/dashboard/components/dialog/CreateSnapshot.vue index d0369aa..6b669ed 100644 --- a/dashboard/components/dialog/CreateSnapshot.vue +++ b/dashboard/components/dialog/CreateSnapshot.vue @@ -107,7 +107,7 @@ async function confirmSnapshot() { Cancel + :disabled="snapshotName.trim().length == 0"> Confirm diff --git a/dashboard/components/dialog/InviteManager.vue b/dashboard/components/dialog/InviteManager.vue index 3617946..bd78fd2 100644 --- a/dashboard/components/dialog/InviteManager.vue +++ b/dashboard/components/dialog/InviteManager.vue @@ -13,12 +13,42 @@ const props = defineProps<{ }[] }>(); -function acceptInvite(project_id: string) { - +async function acceptInvite(project_id: string) { + try { + await $fetch('/api/project/members/accept', { + method: 'POST', + body: JSON.stringify({ project_id }), + headers: useComputedHeaders({ + custom: { + 'Content-Type': 'application/json' + } + }).value + }); + emit('success'); + } catch (ex) { + console.error(ex); + alert('Error accepting invite'); + emit('cancel'); + } } -function declineInvite(project_id: string) { - +async function declineInvite(project_id: string) { + try { + await $fetch('/api/project/members/decline', { + method: 'POST', + body: JSON.stringify({ project_id }), + headers: useComputedHeaders({ + custom: { + 'Content-Type': 'application/json' + } + }).value + }); + emit('success'); + } catch (ex) { + console.error(ex); + alert('Error accepting invite'); + emit('cancel'); + } } @@ -32,9 +62,9 @@ function declineInvite(project_id: string) { background: 'dark:bg-lyx-widget bg-lyx-lightmode-widget-light', ring: 'border-solid border-[1px] border-[#262626]' }"> -
+
-
+
You are invited to join diff --git a/dashboard/components/layout/VerticalNavigation.vue b/dashboard/components/layout/VerticalNavigation.vue index 97650fc..fd6e584 100644 --- a/dashboard/components/layout/VerticalNavigation.vue +++ b/dashboard/components/layout/VerticalNavigation.vue @@ -1,6 +1,6 @@