fix: clean up 49 unused variables, catch params, and stale imports (#22695)
This commit is contained in:
parent
34213d4446
commit
cce05c1665
37 changed files with 32 additions and 94 deletions
|
|
@ -8,7 +8,6 @@ import { LOCALES, route } from "../src/lib/language.js"
|
|||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const BASE_URL = config.baseUrl
|
||||
const PUBLIC_DIR = join(__dirname, "../public")
|
||||
const ROUTES_DIR = join(__dirname, "../src/routes")
|
||||
const DOCS_DIR = join(__dirname, "../../../web/src/content/docs")
|
||||
|
||||
interface SitemapEntry {
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@ export default function Home() {
|
|||
const i18n = useI18n()
|
||||
const language = useLanguage()
|
||||
const githubData = createAsync(() => github())
|
||||
const release = createMemo(() => githubData()?.release)
|
||||
|
||||
const handleCopyClick = (event: Event) => {
|
||||
const button = event.currentTarget as HTMLButtonElement
|
||||
const text = button.textContent
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { useI18n } from "~/context/i18n"
|
|||
import { useLanguage } from "~/context/language"
|
||||
import "./user-menu.css"
|
||||
|
||||
const logout = action(async () => {
|
||||
const _logout = action(async () => {
|
||||
"use server"
|
||||
const auth = await useAuthSession()
|
||||
const event = getRequestEvent()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue