fix(react): switch namespace import to default import to fix stale Vite CJS interop

- 3 files: theme-provider, carousel, sidebar
- index.html: set title to GitData.AI, favicon to /logo.png
- add public/logo.png and robots.txt
This commit is contained in:
ZhenYi 2026-05-12 22:03:54 +08:00
parent e6ba5433e2
commit e185885557
6 changed files with 22 additions and 13 deletions

View File

@ -1,13 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vite-app</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
<head>
<meta charset="UTF-8"/>
<link href="/logo.png" rel="icon" type="image/svg+xml"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>GitData.AI</title>
</head>
<body>
<div id="root"></div>
<script src="/src/main.tsx" type="module"></script>
</body>
</html>

BIN
public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

9
public/robots.txt Normal file
View File

@ -0,0 +1,9 @@
User-agent: *
Allow: /
# Prevent indexing authentication and user-private management pages
Disallow: /auth/
Disallow: /settings
Sitemap: https://gitdata.ai/sitemap.xml

View File

@ -1,5 +1,5 @@
/* eslint-disable react-refresh/only-export-components */
import * as React from "react"
import React from "react"
import { applyThemePreset } from "@/components/theme/ThemePresetSelector"

View File

@ -1,4 +1,4 @@
import * as React from "react"
import React from "react"
import useEmblaCarousel, {
type UseEmblaCarouselType,
} from "embla-carousel-react"

View File

@ -1,4 +1,4 @@
import * as React from "react"
import React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"