This file contains hidden or 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
import { defineNuxtModule } from 'nuxt/kit'; | |
import type { NuxtPage } from 'nuxt/schema'; | |
const PAGE_GROUP_REGEX = /\(([^)]+)\)/; | |
export default defineNuxtModule({ | |
meta: { | |
name: 'page-groups', | |
}, | |
setup(_options, nuxt) { |
This file contains hidden or 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
<script setup lang="ts"> | |
import { useSuspenseQuery } from './useSuspenseQuery'; | |
const { result } = await useSuspenseQuery(...); | |
</script> | |
<template> | |
<pre>{{ result }}</pre> | |
</template> |
This file contains hidden or 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
prettyall() { | |
DIR="${1:-.}" | |
EXCLUDE_DIRS="node_modules,vendor,build,dist,coverage" | |
# Prefer using local prettier bin if available | |
if [ -f ./node_modules/.bin/prettier ]; then | |
PRETTIER_BIN="./node_modules/.bin/prettier" | |
else | |
PRETTIER_BIN="prettier" |
This file contains hidden or 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
updateChannel: 'stable', | |
fontSize: 12, | |
fontFamily: "'FuraCode Nerd Font', 'Input Mono', monospace", | |
fontWeight: 'normal', |