diff --git a/components/AdoptProbe.vue b/components/AdoptProbe.vue index 51b83173..ca221c4d 100644 --- a/components/AdoptProbe.vue +++ b/components/AdoptProbe.vue @@ -37,13 +37,14 @@ I'm not running a probe yet - - Set up your probe + + + Set up your probe First, update your container by running the following commands: - - Join the network + + Join the network diff --git a/components/CodeBlock.vue b/components/CodeBlock.vue index afa7da1e..dfdedc7f 100644 --- a/components/CodeBlock.vue +++ b/components/CodeBlock.vue @@ -1,7 +1,7 @@ - {{ line[0] }}{{ line[1] }} + {{ line[0] }}{{ line[1] }} - - - - - - {{ commands[platform][size] }} - - {{ line[0] }}{{ line[1] }} + + + + + {{ commands[platform][size] }} + + {{ line[0] }}{{ line[1] }} + - - - - - - Copied! + + + + + Copied! + diff --git a/components/TokenDetails.vue b/components/TokenDetails.vue index 9f36beef..63f99521 100644 --- a/components/TokenDetails.vue +++ b/components/TokenDetails.vue @@ -66,16 +66,16 @@ {{ expire ? `Token will expire ${formatDate(expire)}.` : 'Token will never expire.' }} Origins - A list of origins which are allowed to use the token. If empty, any origin is valid. @@ -102,7 +102,7 @@ diff --git a/pages/credits.vue b/pages/credits.vue index 4f3e422a..abe0f6a5 100644 --- a/pages/credits.vue +++ b/pages/credits.vue @@ -71,7 +71,7 @@ import type { PageState } from 'primevue/paginator'; import { useAuth } from '~/store/auth'; import { formatDateForTable } from '~/utils/date-formatters'; - import { sendToast } from '~/utils/send-toast'; + import { sendErrorToast } from '~/utils/send-toast'; useHead({ title: 'Credits -', @@ -114,7 +114,7 @@ return { total: total[0]?.amount || 0, additions, deductions }; } catch (e) { - sendToast(e); + sendErrorToast(e); throw e; } }, { default: () => ({ total: 0, additions: [], deductions: [] }) }); @@ -156,7 +156,7 @@ creditsChangesCount.value = additionsCount + deductionsCount; } catch (e) { - sendToast(e); + sendErrorToast(e); } loading.value = false; diff --git a/pages/index.vue b/pages/index.vue index 0757cab2..5aab56d5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -122,6 +122,7 @@ [] }); @@ -181,7 +182,7 @@ })); return result; } catch (e) { - sendToast(e); + sendErrorToast(e); throw e; } }, { default: () => [] }); @@ -203,7 +204,7 @@ })); return result; } catch (e) { - sendToast(e); + sendErrorToast(e); throw e; } }, { default: () => [] }); diff --git a/pages/probes.vue b/pages/probes.vue index 86f1a380..7bcbf634 100644 --- a/pages/probes.vue +++ b/pages/probes.vue @@ -288,6 +288,7 @@ probe.id === updatedProbe.id ? updatedProbe : probe) ]; } catch (e) { - sendToast(e); + sendErrorToast(e); } }; diff --git a/pages/settings.vue b/pages/settings.vue index 2cff65d7..66b1c149 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -96,6 +96,7 @@ import { customEndpoint, deleteUser, updateMe } from '@directus/sdk'; import { useAuth } from '~/store/auth'; - import { sendToast } from '~/utils/send-toast'; + import { sendErrorToast } from '~/utils/send-toast'; useHead({ title: 'Settings -', @@ -163,7 +164,7 @@ toast.add({ severity: 'success', summary: 'Saved', detail: 'All settings saved', life: 4000 }); } catch (e) { - sendToast(e); + sendErrorToast(e); } saveLoading.value = false; @@ -195,7 +196,7 @@ toast.add({ severity: 'success', summary: 'Synced', detail: 'GitHub data synced', life: 4000 }); } catch (e) { - sendToast(e); + sendErrorToast(e); } loadingIconId.value = null; @@ -209,7 +210,7 @@ await $directus.request(deleteUser(user.id!)); reloadNuxtApp(); } catch (e) { - sendToast(e); + sendErrorToast(e); } }; diff --git a/pages/tokens.vue b/pages/tokens.vue index feac8c27..168a77d6 100644 --- a/pages/tokens.vue +++ b/pages/tokens.vue @@ -88,6 +88,7 @@ diff --git a/presets/aura/autocomplete/index.js b/presets/aura/autocomplete/index.js index 52d98fba..e0c3190f 100644 --- a/presets/aura/autocomplete/index.js +++ b/presets/aura/autocomplete/index.js @@ -28,11 +28,11 @@ export default { // Flex 'flex items-center flex-wrap', - 'gap-2', + 'gap-x-2', // Spacing 'm-0 list-none', - 'py-1 px-1', + 'px-1', // Size 'w-full', @@ -67,7 +67,7 @@ export default { class: [ 'py-1 px-0 ml-2', 'inline-flex flex-auto' ], }, inputChip: { - class: 'flex-auto inline-flex pt-1 pb-1', + class: 'flex-auto inline-flex h-[35px] only:pl-2', }, input: { class: 'border-none outline-none bg-transparent m-0 p-0 shadow-none rounded-none w-full', diff --git a/presets/aura/dialog/index.js b/presets/aura/dialog/index.js index 6725567e..ff40dd9b 100644 --- a/presets/aura/dialog/index.js +++ b/presets/aura/dialog/index.js @@ -1,5 +1,5 @@ export default { - root: ({ state }) => ({ + root: ({ props, state }) => ({ class: [ // Shape 'rounded-lg', @@ -7,7 +7,8 @@ export default { 'border-0', // Size - 'max-h-[90vh]', + props.position === 'top' ? 'max-h[calc(95vh-7*16px)]' : 'max-h-[90vh]', + { 'mt-28': props.position === 'top' }, 'w-[50vw]', 'm-0', @@ -115,7 +116,10 @@ export default { ], }), transition: ({ props }) => { - return props.position === 'top' + // Use default animation for the "position": "top" + // return props.position === 'top' + // eslint-disable-next-line no-constant-condition + return false ? { enterFromClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0 mask-active', enterActiveClass: 'transition-all duration-200 ease-out', diff --git a/utils/send-toast.ts b/utils/send-toast.ts index 9fe0c3e3..7df50d97 100644 --- a/utils/send-toast.ts +++ b/utils/send-toast.ts @@ -1,6 +1,12 @@ +import type { ToastMessageOptions } from 'primevue/toast'; import { useToastService } from '~/composables/useToastService'; -export const sendToast = (error: unknown) => { +export const sendToast = (severity: ToastMessageOptions['severity'], summary: string, detail: string = '') => { + const toastService = useToastService(); + toastService.add({ severity, summary, detail, life: 5000 }); +}; + +export const sendErrorToast = (error: unknown) => { const toastService = useToastService(); const e = error as DashboardError;
Set up your probe
First, update your container by running the following commands:
Join the network
{{ line[0] }}{{ line[1] }}
{{ line[0] }}
{{ line[1] }}
{{ commands[platform][size] }}
A list of origins which are allowed to use the token. If empty, any origin is valid. @@ -102,7 +102,7 @@ diff --git a/pages/credits.vue b/pages/credits.vue index 4f3e422a..abe0f6a5 100644 --- a/pages/credits.vue +++ b/pages/credits.vue @@ -71,7 +71,7 @@ import type { PageState } from 'primevue/paginator'; import { useAuth } from '~/store/auth'; import { formatDateForTable } from '~/utils/date-formatters'; - import { sendToast } from '~/utils/send-toast'; + import { sendErrorToast } from '~/utils/send-toast'; useHead({ title: 'Credits -', @@ -114,7 +114,7 @@ return { total: total[0]?.amount || 0, additions, deductions }; } catch (e) { - sendToast(e); + sendErrorToast(e); throw e; } }, { default: () => ({ total: 0, additions: [], deductions: [] }) }); @@ -156,7 +156,7 @@ creditsChangesCount.value = additionsCount + deductionsCount; } catch (e) { - sendToast(e); + sendErrorToast(e); } loading.value = false; diff --git a/pages/index.vue b/pages/index.vue index 0757cab2..5aab56d5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -122,6 +122,7 @@