-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+
pageMenuKey()
for adding queryParam.query
into keys of `<ASubMe…
…nu>` * fix new page or query won't update menu items by replace the prop `postPages` with `queryParam` for passing it as the `queryKey` of `useApiPosts()` to sync `data` with `pages/posts.vue` * now will only expand menus of the current and previous cursor when pages get updated as currently it's not possible to move page backwards @ `<PostNav>` * now will display `H3Error.toJSON()` & `Error.stack` which is in html string: https://github.com/nuxt/nuxt/blob/fcf023e611efb662124164b5cbcae12503b0ee0a/packages/nuxt/src/core/runtime/nitro/error.ts#L19 * wrapping with a new root level `div.container` @ error.vue * partial revert 9046c33 due to TanStack/query#7733 @ `<PostRendererList>` @ fe
- Loading branch information
Showing
4 changed files
with
25 additions
and
10 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
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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
<template> | ||
<NuxtLayout> | ||
<PlaceholderError :error="new ApiResponseError(error.statusCode, error.statusMessage ?? '')" /> | ||
<div class="container"> | ||
<PlaceholderError | ||
:error="new ApiResponseError( | ||
error.statusCode, | ||
_.isEmpty(error.statusMessage) || error.statusMessage === undefined ? error.message : error.statusMessage | ||
)" /> | ||
<!-- eslint-disable-next-line vue/no-v-html --> | ||
<div v-if="'stack' in error" v-html="error.stack" /> | ||
<pre v-if="'toJSON' in error">{{ JSON.stringify(error.toJSON()) }}</pre> | ||
</div> | ||
</NuxtLayout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { NuxtError } from '#app'; | ||
import _ from 'lodash'; | ||
defineProps<{ error: NuxtError }>(); | ||
</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