website: fix typescript warnings when running astro check
see https://github.com/withastro/astro/issues/10174#issuecomment-2026297879 for the why the tsconfig.json change
This commit is contained in:
@@ -21,7 +21,7 @@ async function resizeSourceBackgrounds() {
|
|||||||
.toBuffer()
|
.toBuffer()
|
||||||
|
|
||||||
const backgrounds = await readdir(sourcesDir)
|
const backgrounds = await readdir(sourcesDir)
|
||||||
backgrounds.forEach((backgroundFile, i) => {
|
backgrounds.forEach((backgroundFile) => {
|
||||||
const srcPath = path.join(sourcesDir, backgroundFile)
|
const srcPath = path.join(sourcesDir, backgroundFile)
|
||||||
const backgroundName = path.parse(backgroundFile).name
|
const backgroundName = path.parse(backgroundFile).name
|
||||||
const jpegPath = path.join(outputDir, `${backgroundName}.jpg`)
|
const jpegPath = path.join(outputDir, `${backgroundName}.jpg`)
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ const useSubsettedFont = import.meta.env.PUBLIC_USE_GAUFRE_SUBSETTED_FONT !== "0
|
|||||||
{
|
{
|
||||||
services
|
services
|
||||||
.filter(({ enabled }) => !!enabled)
|
.filter(({ enabled }) => !!enabled)
|
||||||
.map(({ id, name, url, beta }, i) => {
|
.map(({ id, name, url, beta }, i: number) => {
|
||||||
const logo =
|
const logo =
|
||||||
logos[`/src/assets/logos/${id}.svg`] ||
|
logos[`/src/assets/logos/${id}.svg`] ||
|
||||||
logos[`/src/assets/logos/${id}.jpg`] ||
|
logos[`/src/assets/logos/${id}.jpg`] ||
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useEffect, useState } from "react"
|
import { useState } from "react"
|
||||||
import { renderToStaticMarkup } from "react-dom/server"
|
import { renderToStaticMarkup } from "react-dom/server"
|
||||||
import services from "@/data/services.json"
|
import services from "@/data/services.json"
|
||||||
import Code from "./Code"
|
import Code from "./Code"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import type { APIContext } from "astro"
|
|
||||||
import services from "@/data/services-local.json"
|
import services from "@/data/services-local.json"
|
||||||
|
|
||||||
export async function GET({ url }: APIContext) {
|
export async function GET() {
|
||||||
const response = new Response(
|
const response = new Response(
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
services
|
services
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import type { APIContext } from "astro"
|
|
||||||
import services from "@/data/services.json"
|
import services from "@/data/services.json"
|
||||||
|
|
||||||
export async function GET({ url }: APIContext) {
|
export async function GET() {
|
||||||
const response = new Response(
|
const response = new Response(
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
services
|
services
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"@/*": ["src/*"]
|
"@/*": ["src/*"]
|
||||||
},
|
},
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"jsxImportSource": "react"
|
"jsxImportSource": "react",
|
||||||
|
"outDir": "dist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user