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> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link href="/logo.png" rel="icon" type="image/svg+xml"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>vite-app</title> <title>GitData.AI</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script type="module" src="/src/main.tsx"></script> <script src="/src/main.tsx" type="module"></script>
</body> </body>
</html> </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 */ /* eslint-disable react-refresh/only-export-components */
import * as React from "react" import React from "react"
import { applyThemePreset } from "@/components/theme/ThemePresetSelector" import { applyThemePreset } from "@/components/theme/ThemePresetSelector"

View File

@ -1,4 +1,4 @@
import * as React from "react" import React from "react"
import useEmblaCarousel, { import useEmblaCarousel, {
type UseEmblaCarouselType, type UseEmblaCarouselType,
} from "embla-carousel-react" } 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 { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui" import { Slot } from "radix-ui"