mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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} />,
|
||||
)
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user