-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaffb5e
commit abd729e
Showing
22 changed files
with
536 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.7 KB
cypress/snapshots/cookbook.cy.ts/Cookbook -- Creates containers.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.4 KB
cypress/snapshots/cookbook.cy.ts/Cookbook -- Finds existing Ramen.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { UIComponents } from '@aerogel/core'; | ||
|
||
import AlertModal from './overrides/AlertModal.vue'; | ||
import ConfirmModal from './overrides/ConfirmModal.vue'; | ||
import ErrorReportModal from './overrides/ErrorReportModal.vue'; | ||
import LoadingModal from './overrides/LoadingModal.vue'; | ||
import SnackbarNotification from './overrides/SnackbarNotification.vue'; | ||
|
||
export const components = { | ||
[UIComponents.AlertModal]: AlertModal, | ||
[UIComponents.ConfirmModal]: ConfirmModal, | ||
[UIComponents.ErrorReportModal]: ErrorReportModal, | ||
[UIComponents.LoadingModal]: LoadingModal, | ||
[UIComponents.Snackbar]: SnackbarNotification, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<ModalWrapper :title="title"> | ||
<AGMarkdown :text="message" class="text-sm text-gray-500" /> | ||
</ModalWrapper> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useAlertModalProps } from '@aerogel/core'; | ||
defineProps(useAlertModalProps()); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<ModalWrapper v-slot="{ close }" :title="title" :cancellable="false"> | ||
<AGMarkdown :text="message" class="text-sm text-gray-500" /> | ||
<div class="mt-4 flex flex-row-reverse"> | ||
<TextButton @click="close(true)"> | ||
{{ renderedAcceptText }} | ||
</TextButton> | ||
<TextButton color="clear" class="mr-2" @click="close(false)"> | ||
{{ renderedCancelText }} | ||
</TextButton> | ||
</div> | ||
</ModalWrapper> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useConfirmModal, useConfirmModalProps } from '@aerogel/core'; | ||
const props = defineProps(useConfirmModalProps()); | ||
const { renderedAcceptText, renderedCancelText } = useConfirmModal(props); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<ModalWrapper no-padding> | ||
<div class="p-4"> | ||
<h2 class="flex justify-between gap-4"> | ||
<div class="flex items-center gap-2"> | ||
<i-zondicons-exclamation-solid class="h-5 w-5 text-red-600" /> | ||
<AGErrorReportModalTitle | ||
class="text-lg font-semibold leading-6 text-gray-900" | ||
:report="report" | ||
:current-report="activeReportIndex + 1" | ||
:total-reports="reports.length" | ||
/> | ||
<span v-if="reports.length > 1" class="flex gap-0.5"> | ||
<TextButton | ||
icon | ||
color="clear" | ||
:disabled="activeReportIndex === 0" | ||
:aria-label="previousReportText" | ||
:title="previousReportText" | ||
@click="activeReportIndex--" | ||
> | ||
<i-zondicons-cheveron-left class="h-4 w-4" /> | ||
</TextButton> | ||
<TextButton | ||
icon | ||
color="clear" | ||
:disabled="activeReportIndex === reports.length - 1" | ||
:aria-label="nextReportText" | ||
:title="nextReportText" | ||
@click="activeReportIndex++" | ||
> | ||
<i-zondicons-cheveron-right class="h-4 w-4" /> | ||
</TextButton> | ||
</span> | ||
</div> | ||
<AGErrorReportModalButtons :report="report" class="gap-2"> | ||
<template | ||
#default="{ | ||
url, | ||
handler, | ||
iconComponent, | ||
description, | ||
}: IAGErrorReportModalButtonsDefaultSlotProps" | ||
> | ||
<TextButton | ||
:url="url" | ||
color="secondary" | ||
class="flex items-center gap-1" | ||
@click="handler" | ||
> | ||
<component :is="iconComponent" /> | ||
{{ description }} | ||
</TextButton> | ||
</template> | ||
</AGErrorReportModalButtons> | ||
</h2> | ||
<AGMarkdown v-if="report.description" :text="report.description" class="text-gray-600" /> | ||
</div> | ||
<div class="-mt-2 max-h-[80vh] overflow-auto bg-red-50"> | ||
<pre class="p-4 text-xs text-red-800" v-text="details" /> | ||
</div> | ||
</ModalWrapper> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useErrorReportModal, useErrorReportModalProps } from '@aerogel/core'; | ||
import type { IAGErrorReportModalButtonsDefaultSlotProps } from '@aerogel/core'; | ||
const props = defineProps(useErrorReportModalProps()); | ||
const { activeReportIndex, details, nextReportText, previousReportText, report } = useErrorReportModal(props); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<ModalWrapper :cancellable="false"> | ||
<div class="flex items-center justify-center gap-2"> | ||
<i-svg-spinners:90-ring-with-bg class="h-8 w-8 flex-shrink-0 text-emerald-600" /> | ||
<AGMarkdown :text="renderedMessage" class="text-gray-500" /> | ||
</div> | ||
</ModalWrapper> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useLoadingModal, useLoadingModalProps } from '@aerogel/core'; | ||
const props = defineProps(useLoadingModalProps()); | ||
const { renderedMessage } = useLoadingModal(props); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<AGHeadlessModal | ||
ref="$modal" | ||
v-slot="{ close }" | ||
v-bind="props" | ||
class="relative z-50" | ||
> | ||
<div class="fixed inset-0 z-10"> | ||
<div class="flex h-full items-center justify-center p-4 text-center"> | ||
<AGHeadlessModalPanel | ||
class="relative max-h-full transform overflow-auto rounded-lg bg-white text-left shadow-xl" | ||
:class="{ 'p-4': !noPadding }" | ||
> | ||
<AGHeadlessModalTitle v-if="title" class="text-base font-semibold leading-6 text-gray-900"> | ||
<AGMarkdown :text="title" inline /> | ||
</AGHeadlessModalTitle> | ||
<slot :close="close" /> | ||
</AGHeadlessModalPanel> | ||
</div> | ||
</div> | ||
</AGHeadlessModal> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import { booleanProp, useModalExpose, useModalProps } from '@aerogel/core'; | ||
import type { IAGHeadlessModal, IAGModal } from '@aerogel/core'; | ||
const props = defineProps({ | ||
noPadding: booleanProp(), | ||
...useModalProps(), | ||
}); | ||
const $modal = ref<IAGHeadlessModal>(); | ||
defineOptions({ inheritAttrs: false }); | ||
defineExpose<IAGModal>(useModalExpose($modal)); | ||
</script> |
Oops, something went wrong.