mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-23 09:07:40 -05:00
chore: fix type errors
This commit is contained in:
@@ -201,9 +201,6 @@ export default defineNuxtConfig({
|
||||
strategy: 'no_prefix',
|
||||
defaultLocale: 'en-US',
|
||||
vueI18n: '../i18n.config.ts',
|
||||
bundle: {
|
||||
optimizeTranslationDirective: false
|
||||
},
|
||||
locales: [
|
||||
{ code: 'ar-AR', name: 'العربية', file: 'ar_AR.json' },
|
||||
{ code: 'ast', name: 'Asturianu', file: 'ast.json' },
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { queryCollection } from '@nuxt/content/server';
|
||||
import { Feed } from 'feed';
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { request } from 'undici';
|
||||
import type { Dispatcher } from 'undici';
|
||||
import type { H3Event } from 'h3';
|
||||
|
||||
export type HttpApiOptions = {
|
||||
headers?: HeadersInit; body?: string; method?: Dispatcher.HttpMethod;
|
||||
|
||||
50
shared/config.d.ts
vendored
Normal file
50
shared/config.d.ts
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
declare module 'nuxt/schema' {
|
||||
interface RuntimeConfig {
|
||||
trustProxy: boolean;
|
||||
|
||||
githubApiToken: string;
|
||||
|
||||
stripeSecretKey: string;
|
||||
stripeWebhookSecret: string;
|
||||
stripeNotificationEmail: string;
|
||||
|
||||
hcaptchaSecretKey: string;
|
||||
|
||||
grpcHost: string;
|
||||
grpcApiKey: string;
|
||||
|
||||
mongoConnectionString: string;
|
||||
|
||||
smtpHost: string;
|
||||
smtpPort: number;
|
||||
smtpUser: string;
|
||||
smtpPassword: string;
|
||||
smtpSecure: true;
|
||||
smtpFromEmail: string;
|
||||
smtpFromName: string;
|
||||
|
||||
discordBotToken: string;
|
||||
discordClientId: string;
|
||||
discordClientSecret: string;
|
||||
discordGuildId: string;
|
||||
discordTesterRoleId: string;
|
||||
discordSupporterRoleId: string;
|
||||
|
||||
discourseSsoSecret: string;
|
||||
|
||||
apiBase: string;
|
||||
apiBaseHost: string;
|
||||
|
||||
redisUrl: string;
|
||||
}
|
||||
|
||||
interface PublicRuntimeConfig {
|
||||
baseUrl: string;
|
||||
cdnBaseUrl: string;
|
||||
redirectHosts: string;
|
||||
cookieSecure: boolean;
|
||||
hcaptchaSiteKey: string;
|
||||
}
|
||||
}
|
||||
|
||||
export { };
|
||||
@@ -25,7 +25,10 @@ definePageMeta({
|
||||
|
||||
<template>
|
||||
<div class="content-inner">
|
||||
<ContentRenderer :value="doc" />
|
||||
<ContentRenderer
|
||||
v-if="doc"
|
||||
:value="doc"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
49
src/plugins/types.d.ts
vendored
49
src/plugins/types.d.ts
vendored
@@ -4,53 +4,4 @@ declare module '#app' {
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'nuxt/schema' {
|
||||
interface RuntimeConfig {
|
||||
trustProxy: boolean;
|
||||
|
||||
githubApiToken: string;
|
||||
|
||||
stripeSecretKey: string;
|
||||
stripeWebhookSecret: string;
|
||||
stripeNotificationEmail: string;
|
||||
|
||||
hcaptchaSecretKey: string;
|
||||
|
||||
grpcHost: string;
|
||||
grpcApiKey: string;
|
||||
|
||||
mongoConnectionString: string;
|
||||
|
||||
smtpHost: string;
|
||||
smtpPort: number;
|
||||
smtpUser: string;
|
||||
smtpPassword: string;
|
||||
smtpSecure: true;
|
||||
smtpFromEmail: string;
|
||||
smtpFromName: string;
|
||||
|
||||
discordBotToken: string;
|
||||
discordClientId: string;
|
||||
discordClientSecret: string;
|
||||
discordGuildId: string;
|
||||
discordTesterRoleId: string;
|
||||
discordSupporterRoleId: string;
|
||||
|
||||
discourseSsoSecret: string;
|
||||
|
||||
apiBase: string;
|
||||
apiBaseHost: string;
|
||||
|
||||
redisUrl: string;
|
||||
}
|
||||
|
||||
interface PublicRuntimeConfig {
|
||||
baseUrl: string;
|
||||
cdnBaseUrl: string;
|
||||
redirectHosts: string;
|
||||
cookieSecure: boolean;
|
||||
hcaptchaSiteKey: string;
|
||||
}
|
||||
}
|
||||
|
||||
export { };
|
||||
|
||||
Reference in New Issue
Block a user