chore: update repository URL and simplify main.tsx rendering

- Changed the repository URL in package.json and apps/web/package.json to reflect the new GitHub location.
- Removed StrictMode wrapper from the main.tsx file to streamline rendering of the RouterProvider component.
- Updated ActionGroup component to use dynamic repository URL for GitHub link.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-06 20:42:45 +08:00
parent 70a1fe4d8c
commit 7d7d3ca159
4 changed files with 5 additions and 9 deletions

View File

@@ -5,7 +5,7 @@
"packageManager": "pnpm@10.11.1",
"repository": {
"type": "git",
"url": "https://github.com/innei/photo-gallery"
"url": "https://github.com/Iris-Photo-Gallery/Iris"
},
"scripts": {
"analyze": "analyzer=1 vite build",

View File

@@ -1,6 +1,5 @@
import './styles/index.css'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { RouterProvider } from 'react-router'
@@ -12,7 +11,5 @@ if (import.meta.env.DEV) {
}
createRoot(document.querySelector('#root')!).render(
<StrictMode>
<RouterProvider router={router} />
</StrictMode>,
<RouterProvider router={router} />,
)

View File

@@ -1,4 +1,5 @@
import { siteConfig } from '@config'
import { repository } from '@pkg'
import { useAtom } from 'jotai'
import { useRef, useState } from 'react'
@@ -52,9 +53,7 @@ export const ActionGroup = () => {
variant="ghost"
size="sm"
className="h-10 w-10 rounded-full border-0 bg-gray-100 transition-all duration-200 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700"
onClick={() =>
window.open('https://github.com/Innei/photo-gallery', '_blank')
}
onClick={() => window.open(repository.url, '_blank')}
title="查看 GitHub 仓库"
>
<i className="i-mingcute-github-line text-base text-gray-600 dark:text-gray-300" />

View File

@@ -6,7 +6,7 @@
"packageManager": "pnpm@10.11.1",
"repository": {
"type": "git",
"url": "https://github.com/innei/photo-gallery"
"url": "https://github.com/Iris-Photo-Gallery/Iris"
},
"scripts": {
"build": "pnpm --filter @photo-gallery/web build",