file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
layer/components/Lego/Tweet/Action/Copy.vue | Vue | <script setup lang="ts">
import key from '../.keys'
import { copiedKey } from './.keys'
const tweet = inject(key)
const tweetUrl = computed(() => (tweet?.value ? getTweetUrl(tweet.value) : ''))
const { copy, copied } = useClipboard({ source: tweetUrl })
provide(copiedKey, copied)
</script>
<template>
<button v-if... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Action/CopyIcon.vue | Vue | <script setup lang="ts">
import { copiedKey } from './.keys'
const copied = inject(copiedKey, ref(false))
</script>
<script lang="ts">
export default {
inheritAttrs: false,
}
</script>
<template>
<div>
<svg
v-if="copied"
v-bind="$attrs"
viewBox="0 0 24 24"
aria-hidden="true"
fil... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Action/Love.vue | Vue | <script setup lang="ts">
import { getLikeUrl } from 'lego/utils/twitter'
import key from '../.keys'
const tweet = inject(key)
const favoriteCount = computed(() =>
tweet?.value.favorite_count ? formatNumber(tweet?.value.favorite_count) : 0,
)
</script>
<template>
<a
v-if="tweet"
:href="getLikeUrl(tweet)"
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Action/LoveIcon.vue | Vue | <script setup lang="ts"></script>
<template>
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<g>
<path
d="M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Action/Reply.vue | Vue | <script setup lang="ts">
import { getReplyUrl } from 'lego/utils/twitter'
import key from '../.keys'
const tweet = inject(key)
</script>
<template>
<a
v-if="tweet"
:href="getReplyUrl(tweet)"
target="_blank"
rel="noopener noreferrer"
aria-label="Reply to this Tweet on Twitter"
>
<slot>
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Action/ReplyIcon.vue | Vue | <script setup lang="ts"></script>
<template>
<svg viewBox="0 0 24 24" aria-hidden="true" fill="currentColor">
<g>
<path
d="M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"
/>
</g>
</s... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/CreatedAt.vue | Vue | <script setup lang="ts">
import { getTweetUrl } from 'lego/utils/twitter'
import key from './.keys'
const tweet = inject(key)
const createdAt = computed(() =>
tweet?.value.created_at ? new Date(tweet.value.created_at) : undefined,
)
const formatted = useDateFormat(createdAt, 'h:mm a · MMM D, YYYY')
</script>
<templ... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Link.vue | Vue | <script setup lang="ts">
defineProps<{
href: string
}>()
</script>
<template>
<a :href="href" target="_blank" rel="noopener noreferrer"><slot /></a>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Media.vue | Vue | <script setup lang="ts">
import key from './.keys'
const tweet = inject(key)
const mediaDetails = computed(() => tweet?.value?.mediaDetails ?? [])
const gridClass = computed(() => {
const length = mediaDetails.value.length
if (length >= 4)
return 'grid-2x2'
else if (length === 3)
return 'grid-3'
else ... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Media/Photo.vue | Vue | <script setup lang="ts">
import type { MediaPhoto } from 'lego/types'
import { getMediaUrl } from 'lego/utils/twitter'
defineProps<{
media: MediaPhoto
}>()
</script>
<template>
<img
style="object-fit: cover; height: 100%; width: 100%"
:src="getMediaUrl(media, 'small')"
>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Media/Video.vue | Vue | <script setup lang="ts">
import type { MediaVideo } from 'lego/types'
import { getMediaUrl } from 'lego/utils/twitter'
defineProps<{
media: MediaVideo
}>()
</script>
<template>
<video
v-if="media"
:poster="getMediaUrl(media, 'small')"
draggable
muted
preload="metadata"
>
<source
:s... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Replies.vue | Vue | <script setup lang="ts">
import { formatNumber, getTweetUrl } from 'lego/utils/twitter'
import key from './.keys'
const tweet = inject(key)
</script>
<template>
<a
v-if="tweet"
:href="getTweetUrl(tweet)"
target="_blank"
rel="noopener noreferrer"
>
<slot :conversation_count="tweet.conversation_... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/SummaryCard.vue | Vue | <script setup lang="ts">
import key from './.keys'
const tweet = inject(key)
const card = computed(() => tweet?.value?.card)
const isLargeSummaryCard = computed(
() => card.value?.name === 'summary_large_image',
)
const image = computed(() =>
isLargeSummaryCard.value
? card.value?.binding_values?.summary_phot... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Terms.vue | Vue | <script setup lang="ts"></script>
<template>
<a
target="_blank"
rel="noopener noreferrer"
href="https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy"
>
<svg
fill="currentColor"
width="20"
height="20"
viewBox="0 0 24 24"
aria-hidden="true"
>
<... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/Text.vue | Vue | <script setup lang="ts">
import { h } from 'vue'
import type {
HashtagEntity,
Indices,
MediaEntity,
SymbolEntity,
Tweet,
UrlEntity,
UserMentionEntity,
} from 'lego/types'
import { getHashtagUrl, getSymbolUrl, getUserUrl } from 'lego/utils/twitter'
import key from './.keys'
import LegoTweetLink from './Lin... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/User.vue | Vue | <script setup lang="ts">
import key from './.keys'
const tweet = inject(key)
const user = computed(() => tweet?.value?.user)
</script>
<template>
<div v-if="user">
<slot :user="user">
<LegoTweetUserAvatar />
<p>{{ user.name }}</p>
<p>@{{ user.screen_name }}</p>
</slot>
</div>
</template>... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/User/Avatar.vue | Vue | <script setup lang="ts">
import key from '../.keys'
const tweet = inject(key)
const user = computed(() => tweet?.value?.user)
</script>
<template>
<div v-if="user">
<img
:style="{
'border-radius':
user.profile_image_shape === 'Square' ? '5px' : '99999px',
}"
:src="user.profil... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/Tweet/index.vue | Vue | <script setup lang="ts">
// reference from: https://github.com/vercel-labs/react-tweet/
import { getTweetUrl } from 'lego/utils/twitter'
import key from './.keys'
const props = defineProps<{
tweetId: string
}>()
const { data, error, pending } = useFetch(`/api/get-tweet/${props.tweetId}`)
provide(key, data)
const u... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/WebsiteCard/.keys.ts | TypeScript | import type { InjectionKey, Ref } from "vue";
import type { MetaTags } from "../../../types/metatags";
export default Symbol() as InjectionKey<Ref<MetaTags | null>>;
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/WebsiteCard/Description.vue | Vue | <script setup lang="ts">
import key from './.keys'
const bookmark = inject(key)
const description = computed(() => bookmark?.value?.description)
</script>
<template>
<div>
<slot :description="description">
{{ description }}
</slot>
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/WebsiteCard/Image.vue | Vue | <script setup lang="ts">
import key from './.keys'
const bookmark = inject(key)
const image = computed(() => bookmark?.value?.image)
</script>
<template>
<img v-if="image" :src="image">
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/WebsiteCard/Title.vue | Vue | <script setup lang="ts">
import key from './.keys'
const bookmark = inject(key)
const title = computed(() => bookmark?.value?.title)
</script>
<template>
<div>
<slot :title="title">
{{ title }}
</slot>
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/WebsiteCard/Url.vue | Vue | <script setup lang="ts">
import key from './.keys'
const bookmark = inject(key)
const url = computed(() => bookmark?.value?.url)
</script>
<template>
<div>
<slot :url="url">
{{ url }}
</slot>
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/components/Lego/WebsiteCard/index.vue | Vue | <script setup lang="ts">
import key from './.keys'
const props = defineProps<{
url: string
}>()
const { data, error, pending } = useFetch('/api/get-metatags', {
method: 'POST',
body: {
url: props.url,
},
})
provide(key, data)
</script>
<template>
<div>
<slot
:title="data?.title"
:descri... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/nuxt.config.ts | TypeScript | import { fileURLToPath } from 'node:url'
import { dirname } from 'node:path'
const currentDir = dirname(fileURLToPath(import.meta.url))
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: ['nuxt-icon', '@vueuse/nuxt'],
alias: {
lego: currentDir,
},
})
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/server/api/get-github-stars/index.get.ts | TypeScript | import { getQuery } from 'h3'
import type { GitHubRepo } from '../../../types'
import { cachedGitHubRepo } from '#imports'
export default defineEventHandler(async (event) => {
const repoWithOwner = getQuery(event).repo
if (!repoWithOwner)
return sendError(event, new Error('Missing repo name.'))
// use ungh... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/server/api/get-metatags/index.post.ts | TypeScript | interface MetaTags {
[key: string]: string
}
export default defineEventHandler(async (event) => {
const { url } = await readBody(event)
if (!url)
return sendError(event, new Error('Missing url'))
const html = await $fetch<string>(url, { responseType: 'text' })
const metaTags: MetaTags = {}
const met... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/server/api/get-tweet/[tweetId].get.ts | TypeScript | import type { Tweet } from '../../../types'
export default defineEventHandler(async (event) => {
const tweetId = event.context.params?.tweetId
if (!tweetId)
return sendError(event, new Error('Missing tweetId'))
const SYNDICATION_URL = 'https://cdn.syndication.twimg.com'
const url = new URL(`${SYNDICATIO... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/server/utils/github.ts | TypeScript | import { cachedFunction } from '#imports'
export const cachedGitHubRepo = cachedFunction(async (repo: string) => {
return (await $fetch(`https://ungh.cc/repos/${repo}`)).repo
}, {
maxAge: 60 * 60,
name: 'github-repo',
getKey: (repo: string) => repo,
})
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/types/github.ts | TypeScript | export interface GitHubRepo {
id: number
name: string
repo: string
description: string
createdAt: string
updatedAt: string
pushedAt: string
stars: number
watchers: number
forks: number
}
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/types/index.ts | TypeScript | export * from './twitter'
export * from './metatags'
export * from './github'
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/types/metatags.ts | TypeScript | export interface MetaTags {
title?: string
description?: string
url?: string
image?: string
}
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/types/twitter.ts | TypeScript | interface TweetEditControl {
edit_tweet_ids: string[]
editable_until_msecs: string
is_edit_eligible: boolean
edits_remaining: string
}
export type Indices = [number, number]
export interface HashtagEntity {
indices: Indices
text: string
}
export interface UserMentionEntity {
id_str: string
indices: I... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
layer/utils/twitter.ts | TypeScript | import type {
HashtagEntity,
MediaDetails,
SymbolEntity,
Tweet,
} from '../types/twitter'
export function getUserUrl(usernameOrTweet: string | Tweet) {
return `https://twitter.com/${
typeof usernameOrTweet === 'string'
? usernameOrTweet
: usernameOrTweet.user.screen_name
}`
}
export functi... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/app.vue | Vue | <script setup lang="ts"></script>
<template>
<div class="text-gray-700 max-w-screen-xl mx-auto">
<SeoKit />
<NuxtLoadingIndicator color="rgb(96,165,250)" />
<NavBar class="sticky top-0 bg-white bg-opacity-50 backdrop-blur-md" />
<div class="px-4 md:px-6 py-4">
<NuxtPage />
</div>
<NavF... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/assets/css/main.css | CSS | .bg-grid {
background: url(~/assets/img/grid.png);
}
.blur-overlay {
background: linear-gradient(
180deg,
#ffffff00 0%,
#ffffff00 65%,
#ffffff 100%
);
}
.fade-edge {
--mask: linear-gradient(to right,
rgba(0,0,0, 0) 0, rgba(0,0,0, 0) 5%,
rgba(0,0,0, 1) 20%, rgba(0,0,0, 1) 80%,
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/AuthUi/CustomButton.vue | Vue | <script setup lang="ts">
</script>
<template>
<a target="_blank">
<slot />
</a>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/AuthUi/Demo.vue | Vue | <script setup lang="ts">
function handleSelectProvider(provider: string) {
// return the selected provider
}
function handleSubmit(payload: { [key: string]: any }) {
// in this case payload will return { email: string, password: string }
}
</script>
<template>
<LegoAuth
class="max-w-96 w-full bg-white borde... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/AuthUi/Demo2.vue | Vue | <script setup lang="ts">
import CustomButton from './CustomButton.vue'
function handleSelectProvider(provider: string) {
// return the selected provider
}
</script>
<template>
<LegoAuth
class="max-w-96 w-full bg-white border rounded-2xl px-8 py-10 shadow-sm"
:hide-provider-label="true"
:providers="['t... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/AuthUi/Showcase.vue | Vue | <script setup lang="ts"></script>
<template>
<ShowcaseCard slug="auth-ui">
<template #image>
<div class="mt-20 relative">
<div
class="absolute -top-16 group-hover:-top-20 right-22 group-hover:right-24 text-4xl text-blue-200 group-hover:text-blue-400 transition-all"
>
<Ic... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Blueprints/Container.vue | Vue | <script setup lang="ts">
</script>
<template>
<div class="not-prose overflow-hidden bg-gradient-radial from-blue-400 to-blue-500 w-full rounded-2xl min-h-16rem md:min-h-lg border flex items-center justify-center">
<slot />
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Blueprints/MagnifiedDock/AppIcon.vue | Vue | <script setup lang="ts">
import { useMotionProperties, useMotionTransitions } from '@vueuse/motion'
const props = defineProps<{
mouseX: number
}>()
const { mouseX } = toRefs(props)
const target = ref<HTMLElement>()
const { motionProperties } = useMotionProperties(target, { width: 40 })
const { push } = useMotionTr... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Blueprints/MagnifiedDock/index.vue | Vue | <script setup lang="ts">
import AppIcon from './AppIcon.vue'
const mouseX = ref(Infinity)
</script>
<template>
<div
class=" flex h-16 items-end gap-4 rounded-2xl bg-white bg-opacity-20 backdrop-blur-md px-4 pb-3"
@mousemove="mouseX = $event.pageX"
@mouseleave="mouseX = Infinity"
>
<AppIcon v-for=... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/CodeExample.vue | Vue | <script setup lang="ts">
const isPreview = ref(true)
</script>
<template>
<div>
<button
class="px-5 py-2.5 text-sm hover:bg-gray-100 opacity-50 hover:opacity-100 transition rounded-lg mr-2"
:class="{ 'bg-gray-100 border !opacity-100': isPreview }"
:active="isPreview"
@click="isPreview = t... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/CountDown/Demo.vue | Vue | <script setup lang="ts">
const date = computed(() => {
const today = new Date()
const tomorrow = new Date(today)
tomorrow.setDate(tomorrow.getDate() + 1)
return tomorrow
})
</script>
<template>
<div class="p-8 bg-white flex flex-col items-center rounded-3xl border ">
<h4 class="text-2xl font-semibold">
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Demo.vue | Vue | <script setup lang="ts"></script>
<template>
<div
class="not-prose min-h-40 my-4 p-4 md:p-12 w-full rounded-2xl border bg-grid bg-repeat-x flex items-center justify-center"
>
<slot />
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/GithubStar/Demo.vue | Vue | <template>
<LegoGithubStar v-slot="{ stars }" repo="zernonia/nuxt-lego" class="group border bg-white hover:bg-gray-100 transition rounded-lg text-xl flex justify-center">
<div class="flex items-center bg-gray-100 group-hover:bg-gray-200 transition rounded-l px-4 py-3 space-x-1">
<Icon name="uil:star" class=... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/GithubStar/Showcase.vue | Vue | <template>
<ShowcaseCard slug="github-star">
<template #image>
<div class="text-blue-300 group-hover:text-[1.25rem] group-hover:text-blue-500 transition-all ">
<LegoGithubStar v-slot="{ stars }" repo="zernonia/nuxt-lego" class="flex items-center space-x-1 px-3 py-2 border bg-white hover:bg-gray-50 t... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Hero.vue | Vue | <script setup lang="ts"></script>
<template>
<div class="my-10 md:my-20">
<h1 class="text-4xl md:text-6xl font-semibold">
Ready made <br>
UI components <br>
with Nuxt layer.
</h1>
<h2 class="mt-4 text-lg md:text-xl text-gray-400">
Unstyled components for building your<br>
Nu... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/MarqueeBanner/Demo.vue | Vue | <script setup lang="ts">
const items = ['Vue', 'React', 'Angular']
</script>
<template>
<LegoMarqueeBanner :speed="0.5" :hovered-speed="0.25" class="w-96 md:w-144 text-xl">
<LegoMarqueeBannerLeft class="my-2">
<div v-for="item in items" :key="item" class="whitespace-nowrap px-5 border hover:border-gray-400... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/MarqueeBanner/Showcase.vue | Vue | <script setup lang="ts">
</script>
<template>
<ShowcaseCard slug="marquee-banner">
<template #image>
<div class="overflow-hidden absolute fade-edge w-full">
<div class="flex group-hover:translate-x-10 transition-transform">
<div class="flex-shrink-0 bg-gray-50 mr-2 w-32 h-10 border hover:... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/NavBar.vue | Vue | <script setup lang="ts">
const isShowingMenu = ref(false)
watch(isShowingMenu, (n) => {
if (n)
document.body.classList.add('overflow-y-hidden')
else document.body.classList.remove('overflow-y-hidden')
})
watch(
() => useRoute().path,
() => {
isShowingMenu.value = false
},
)
</script>
<template>
<... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/NavFooter.vue | Vue | <script setup lang="ts"></script>
<template>
<footer class="px-6 py-8">
<div class="border-t w-full pt-8">
<div>
A project by
<NuxtLink
class="font-semibold"
target="_blank"
to="https://zernonia.com"
>
Zernonia
</NuxtLink>
</div>... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/PageProgress/Demo.vue | Vue | <script setup lang="ts">
const el = ref()
</script>
<template>
<div class="relative">
<LegoPageProgress v-slot="{ progress }" :target="el">
<div
class="absolute -left-6 bottom-0 rounded-full h-full w-2.5 bg-gray-100 overflow-hidden"
>
<div
class="w-full bg-blue-300 rounded-f... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/PageProgress/Showcase.vue | Vue | <script setup lang="ts">
import { TransitionPresets, useTransition } from '@vueuse/core'
const progress = ref(10)
const output = useTransition(progress, {
duration: 300,
transition: TransitionPresets.easeInOutCubic,
})
</script>
<template>
<ShowcaseCard slug="page-progress" @mouseover="progress = 45" @mouseleav... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Preview/Demo.vue | Vue | <script setup lang="ts">
import { withBase } from 'ufo'
import { computed, useRuntimeConfig } from '#imports'
// props from ProseImg (https://github.com/nuxt/content/blob/main/src/runtime/components/Prose/ProseImg.vue)
const props = defineProps({
src: {
type: String,
default: '',
},
alt: {
type: Stri... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Preview/Showcase.vue | Vue | <script setup lang="ts">
</script>
<template>
<ShowcaseCard slug="preview">
<template #image>
<div>
<div class="relative bg-white transition-all w-32 h-20 group-hover:scale-140 flex items-center justify-center text-gray-200 text-3xl border rounded-xl">
<Icon name="uil:image" />
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/ShowcaseCard.vue | Vue | <script setup lang="ts">
const props = defineProps<{
slug: string
}>()
const { slug } = toRefs(props)
const { data } = await useAsyncData(`showcase-${slug.value}`, () => queryContent(`/docs/components/${slug.value}`).only(['title', 'description', '_path', 'new']).findOne())
</script>
<template>
<NuxtLink :to="dat... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/ShowcaseList.vue | Vue | <script setup lang="ts"></script>
<template>
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-8">
<SocialShareShowcase />
<StaticTweetShowcase />
<WebsiteCardShowcase />
<AuthUiShowcase />
<PageProgressShowcase />
<MarqueeBannerShowcase />
<PreviewShowcase />
<TocShowcase />
<Gi... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/SideNavBar.vue | Vue | <script setup lang="ts">
const { data } = await useAsyncData('nav', () => fetchContentNavigation(queryContent('docs')))
const navigation = computed(() => data.value?.[0].children)
</script>
<template>
<div>
<div v-for="nav in navigation" :key="nav._id" class="mb-6">
<h4 class="font-semibold text-lg capita... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/SocialShare/Demo.vue | Vue | <script setup lang="ts">
defineProps<{
url?: string
text?: string
}>()
</script>
<template>
<LegoSocialShare :url="url" class="text-3xl flex space-x-3">
<LegoSocialShareLink class="text-blue-300 hover:text-blue-400 transition" />
<LegoSocialShareFacebook
class="text-blue-300 hover:text-blue-400 tra... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/SocialShare/Showcase.vue | Vue | <script setup lang="ts"></script>
<template>
<ShowcaseCard slug="social-share">
<template #image>
<div class="text-blue-300 text-4xl group-hover:text-[2.75rem] transition-all flex space-x-2 ">
<Icon name="mdi:twitter" class="hover:text-blue-400 transition" />
<Icon name="mdi:facebook" class... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/StaticTweet/Demo.vue | Vue | <script setup lang="ts">
defineProps<{ id: string }>()
</script>
<template>
<LegoTweet
v-slot="{ url }"
:tweet-id="id"
class="max-w-[550px] bg-white p-4 rounded-xl border"
>
<div class="flex justify-between">
<LegoTweetUser v-slot="{ user }">
<div class="flex items-center">
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/StaticTweet/Showcase.vue | Vue | <script setup lang="ts"></script>
<template>
<ShowcaseCard slug="static-tweet">
<template #image>
<div class="overflow-hidden h-full w-full">
<div class="w-64 p-4 mt-12 mx-auto border bg-white rounded-xl">
<div class="flex justify-between items-center">
<div class="flex">
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Toc/Demo.vue | Vue | <script setup lang="ts">
const props = defineProps<{ contentPath: string }>()
const { data } = await useAsyncData(props.contentPath, () => {
return queryContent(props.contentPath).findOne()
})
const links = computed(() => data.value?.body.toc.links)
</script>
<template>
<LegoToc class="bg-white border text-sm p-... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/Toc/Showcase.vue | Vue | <script setup lang="ts"></script>
<template>
<ShowcaseCard slug="table-of-contents">
<template #image>
<div class="px-4 py-6 flex flex-col space-y-2">
<div class="h-2 w-36 rounded-full transition-all bg-gray-100 group-hover:bg-blue-300" />
<div class="ml-4 group-hover:ml-6 transition-all h-... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/WebsiteCard/Demo.vue | Vue | <script setup lang="ts">
defineProps<{ url: string }>()
</script>
<template>
<LegoWebsiteCard
v-slot="{ url, valid }"
class="border rounded-xl overflow-hidden max-w-[550px]"
:url="url"
>
<NuxtLink
v-if="valid"
:to="url"
target="_blank"
class="flex bg-white hover:bg-gray-50 t... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/WebsiteCard/Showcase.vue | Vue | <script setup lang="ts"></script>
<template>
<ShowcaseCard slug="website-card">
<template #image>
<div
class="mt-4 h-22 flex items-center border border-gray-200 group-hover:border-gray-300 transition rounded-xl overflow-hidden"
>
<div class="w-20 h-full bg-gray-100 group-hover:bg-gray... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/content/ProseCode.vue | Vue | <script setup lang="ts">
const props = defineProps<{
code: string
language?: string
filename?: string
higlights?: number[]
meta?: string
}>()
const { code } = toRefs(props)
const { copy, copied } = useClipboard({ source: code })
</script>
<template>
<div class="group relative border rounded-xl bg-gray-100"... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/content/ProseTable.vue | Vue | <template>
<table class="text-sm">
<slot />
</table>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/content/ProseTd.vue | Vue | <template>
<td class="px-2 md:px-6 border-0 border-solid border-b border-gray-200">
<slot />
</td>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/content/ProseTh.vue | Vue | <template>
<td class="px-2 md:px-6 border-0 border-solid border-b border-gray-200">
<slot />
</td>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/components/islands/CustomOgImage.vue | Vue | <script setup lang="ts">
defineProps<{ title: string; description: string }>()
</script>
<template>
<div
:style="{ fontFamily: 'Plus Jakarta Sans' }"
class="relative w-full h-full flex flex-col bg-white text-blue-400 items-center justify-center"
>
<div
class="mt-26 max-w-[600px] flex flex-col tex... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/composables/useCustomHead.ts | TypeScript | export function useCustomHead(data: {
title: string
description: string
image: string
} = {
title: '',
description: '',
image: '/og.png',
}) {
const {
public: { siteUrl },
} = useRuntimeConfig()
const image = computed(() => `${siteUrl}${data.image ?? ''}`)
return useSeoMeta({
title: () => d... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/error.vue | Vue | <script setup lang="ts">
defineProps<{
error: { message: string }
}>()
const handleError = () => clearError({ redirect: '/' })
</script>
<template>
<div class="w-full">
<div class="my-32 flex flex-col items-center justify-center ">
<Icon name="mdi-map-marker-question-outline" class="text-4xl text-gray-3... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/nuxt.config.ts | TypeScript | export default defineNuxtConfig({
extends: ['../layer', 'nuxt-seo-kit'],
app: {
head: {
link: [{ rel: 'icon', type: 'image/svg', href: '/logo.svg' }],
meta: [{ name: 'google-site-verification', content: '0fHjXCYubdueQI63delbgFoqfSf_90OQdhwJBW5NxpQ' }],
},
},
modules: [
'@unocss/nuxt',
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/pages/blueprints/[...slug].vue | Vue | <script setup lang="ts">
const slug = computed(() => useRoute().path)
const { data } = await useAsyncData(slug.value, () =>
queryContent(slug.value).findOne(),
)
if (!data.value)
throw createError({ statusCode: 404, statusMessage: 'Page Not Found!!' })
const image = computed(() => {
return `${useRoute().path}/__... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/pages/blueprints/index.vue | Vue | <script setup lang="ts">
const { data } = await useAsyncData('nav-blueprints', () => fetchContentNavigation(queryContent('blueprints')))
const navigation = computed(() => data.value?.[0].children)
</script>
<template>
<div class="md:mt-8">
<h1 class="text-3xl md:text-4xl font-bold">
Blueprints
</h1>
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/pages/docs.vue | Vue | <script setup lang="ts"></script>
<template>
<div class="flex">
<SideNavBar
class="hidden md:block sticky top-21 py-4 h-max w-44 shrink-0"
/>
<NuxtPage />
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/pages/docs/[...slug].vue | Vue | <script setup lang="ts">
const slug = computed(() => useRoute().path)
const { data } = await useAsyncData(slug.value, () =>
queryContent(slug.value).findOne(),
)
if (!data.value)
throw createError({ statusCode: 404, statusMessage: 'Page Not Found!!' })
const { data: prevNext } = await useAsyncData(`${slug.value}-p... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/pages/index.vue | Vue | <script setup lang="ts">
useCustomHead({
title: 'Primitives',
description: 'Ready made UI components with Nuxt layer.',
image: '/og.png',
})
</script>
<template>
<div>
<Hero />
<ShowcaseList />
</div>
</template>
| zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/plugins/analytics.client.ts | TypeScript | export default defineNuxtPlugin(() => {
const cfg = useRuntimeConfig()
if (!cfg.public.umamiHost)
return
const url = new URL('/script.js', cfg.public.umamiHost)
const node = document.createElement('script')
node.async = true
node.src = url.href
node.setAttribute('data-website-id', cfg.public.umamiId... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/server/plugins/content.ts | TypeScript | // Autodoc from inkline.io
// reference: https://github.com/inkline/inkline.io/blob/main/server/plugins/content.ts
import { readFileSync } from 'node:fs'
import { resolve } from 'pathe'
import glob from 'fast-glob'
const rootPath = resolve('.')
const codeCache = new Map<string, string>()
const codeFilePaths = [...glob... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
website/uno.config.ts | TypeScript | import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
} from 'unocss'
export default defineConfig({
shortcuts: [
// ...
],
theme: {
colors: {
// ...
},
},
presets: [
presetUno(),
presetAttributify(),
... | zernonia/nuxt-lego | 234 | NuxtLego is an open source UI component layer for building your Nuxt content quick & beautiful. | Vue | zernonia | zernonia | Troop Travel |
global.d.ts | TypeScript | declare global {
var supabaseRef: string;
}
export {};
| zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
src/commands/go-to-dashboard.ts | TypeScript | import * as vscode from "vscode";
const defineQuickPath = (command: string, path: string) => {
return vscode.commands.registerCommand(`supabase-vscode.${command}`, () => {
if (!supabaseRef) {
return vscode.window.showErrorMessage("[Error] Supabase: Couldn't find Supabase's Ref from your .env file");
}
... | zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
src/commands/go-to-website.ts | TypeScript | import * as vscode from "vscode";
const defineQuickPath = (command: string, path: string) => {
return vscode.commands.registerCommand(`supabase-vscode.${command}`, () => {
vscode.env.openExternal(vscode.Uri.parse(`https://supabase.com${path}`));
});
};
const navList = [
{ command: "goToWebsite", path: "/" }... | zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
src/index.ts | TypeScript | import * as vscode from "vscode";
import { join } from "path";
import goToDashboard from "./commands/go-to-dashboard";
import goToWebsite from "./commands/go-to-website";
export function activate(context: vscode.ExtensionContext) {
let rootDir = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath;
if (rootDir) {
... | zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
src/test/runTest.ts | TypeScript | import * as path from 'path';
import { runTests } from '@vscode/test-electron';
async function main() {
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
// The path to test runner
... | zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
src/test/suite/extension.test.ts | TypeScript | import * as assert from 'assert';
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
import * as vscode from 'vscode';
// import * as myExtension from '../../extension';
suite('Extension Test Suite', () => {
vscode.window.showInformationMessage('Start all tests.... | zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
src/test/suite/index.ts | TypeScript | import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
export function run(): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
ui: 'tdd',
color: true
});
const testsRoot = path.resolve(__dirname, '..');
return new Promise((c, e) => {
glob('**/**.test.... | zernonia/supabase-vscode-extension | 14 | Unofficial Supabase Extension | TypeScript | zernonia | zernonia | Troop Travel |
api/_lib/chromium.ts | TypeScript | import core from "puppeteer-core"
import { getOptions } from "./options"
let _page: core.Page | null
export async function initPage() {
if (_page) {
return _page
}
const options = await getOptions()
const browser = await core.launch(options)
_page = await browser.newPage()
return _page
}
| zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
api/_lib/options.ts | TypeScript | import chrome from "chrome-aws-lambda"
const exePath =
process.platform === "win32"
? "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
: process.platform === "linux"
? "/usr/bin/google-chrome"
: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
interface Options {
args: str... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
api/_lib/supabase.ts | TypeScript | import { createClient } from "@supabase/supabase-js"
export const supabase = createClient(process.env.VITE_SUPABASE_URL ?? "", process.env.VITE_SUPABASE_SERVICE ?? "")
| zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
api/_lib/verify.ts | TypeScript | import type { VercelRequest, VercelResponse } from "@vercel/node"
export default (req: VercelRequest, res: VercelResponse) => {
const { authorization } = req.headers
if (process.env.NODE_ENV !== "development" && authorization !== `Bearer ${process.env.API_SECRET_KEY}`) {
res.status(401).end("Unauthorized")
... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
api/imdb.ts | TypeScript | import { supabase } from "./_lib/supabase"
import { initPage } from "./_lib/chromium"
import type { VercelRequest, VercelResponse } from "@vercel/node"
import verify from "./_lib/verify"
export default async (req: VercelRequest, res: VercelResponse) => {
verify(req, res)
var hrstart = process.hrtime()
const { qu... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
api/steam.ts | TypeScript | import { supabase } from "./_lib/supabase"
import { initPage } from "./_lib/chromium"
import type { VercelRequest, VercelResponse } from "@vercel/node"
import verify from "./_lib/verify"
import { Page } from "puppeteer-core"
const scrapData = async (page: Page, query: any) => {
return await page.$$eval(
"#NewRel... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
api/user/generate.ts | TypeScript | import type { VercelRequest, VercelResponse } from "@vercel/node"
import jwt from "jsonwebtoken"
import { supabase } from "../_lib/supabase"
export default async (req: VercelRequest, res: VercelResponse) => {
const { body } = req
if (req.method !== "POST") {
res.status(404).end("Not allowed")
return
}
... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
components.d.ts | TypeScript | // generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399
declare module 'vue' {
export interface GlobalComponents {
BasePage: typeof import('./src/components/BasePage.vue')['default']
CodeGraphql: typeof import... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
index.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=I... | zernonia/supadb | 47 | Connect and play with Supabase REST API / Graphql easily | Vue | zernonia | zernonia | Troop Travel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.