chore: lint fix

This commit is contained in:
CaIon
2024-03-23 21:24:39 +08:00
parent 15e7307320
commit 962dc984f4
55 changed files with 5263 additions and 3589 deletions

View File

@@ -48,7 +48,7 @@ function App() {
}
let logo = getLogo();
if (logo) {
let linkElement = document.querySelector('link[rel~=\'icon\']');
let linkElement = document.querySelector("link[rel~='icon']");
if (linkElement) {
linkElement.href = logo;
}
@@ -60,7 +60,7 @@ function App() {
<Layout.Content>
<Routes>
<Route
path="/"
path='/'
element={
<Suspense fallback={<Loading></Loading>}>
<Home />
@@ -68,7 +68,7 @@ function App() {
}
/>
<Route
path="/channel"
path='/channel'
element={
<PrivateRoute>
<Channel />
@@ -76,7 +76,7 @@ function App() {
}
/>
<Route
path="/channel/edit/:id"
path='/channel/edit/:id'
element={
<Suspense fallback={<Loading></Loading>}>
<EditChannel />
@@ -84,7 +84,7 @@ function App() {
}
/>
<Route
path="/channel/add"
path='/channel/add'
element={
<Suspense fallback={<Loading></Loading>}>
<EditChannel />
@@ -92,7 +92,7 @@ function App() {
}
/>
<Route
path="/token"
path='/token'
element={
<PrivateRoute>
<Token />
@@ -100,7 +100,7 @@ function App() {
}
/>
<Route
path="/redemption"
path='/redemption'
element={
<PrivateRoute>
<Redemption />
@@ -108,7 +108,7 @@ function App() {
}
/>
<Route
path="/user"
path='/user'
element={
<PrivateRoute>
<User />
@@ -116,7 +116,7 @@ function App() {
}
/>
<Route
path="/user/edit/:id"
path='/user/edit/:id'
element={
<Suspense fallback={<Loading></Loading>}>
<EditUser />
@@ -124,7 +124,7 @@ function App() {
}
/>
<Route
path="/user/edit"
path='/user/edit'
element={
<Suspense fallback={<Loading></Loading>}>
<EditUser />
@@ -132,7 +132,7 @@ function App() {
}
/>
<Route
path="/user/reset"
path='/user/reset'
element={
<Suspense fallback={<Loading></Loading>}>
<PasswordResetConfirm />
@@ -140,7 +140,7 @@ function App() {
}
/>
<Route
path="/login"
path='/login'
element={
<Suspense fallback={<Loading></Loading>}>
<LoginForm />
@@ -148,7 +148,7 @@ function App() {
}
/>
<Route
path="/register"
path='/register'
element={
<Suspense fallback={<Loading></Loading>}>
<RegisterForm />
@@ -156,7 +156,7 @@ function App() {
}
/>
<Route
path="/reset"
path='/reset'
element={
<Suspense fallback={<Loading></Loading>}>
<PasswordResetForm />
@@ -164,7 +164,7 @@ function App() {
}
/>
<Route
path="/oauth/github"
path='/oauth/github'
element={
<Suspense fallback={<Loading></Loading>}>
<GitHubOAuth />
@@ -172,7 +172,7 @@ function App() {
}
/>
<Route
path="/setting"
path='/setting'
element={
<PrivateRoute>
<Suspense fallback={<Loading></Loading>}>
@@ -182,7 +182,7 @@ function App() {
}
/>
<Route
path="/topup"
path='/topup'
element={
<PrivateRoute>
<Suspense fallback={<Loading></Loading>}>
@@ -192,7 +192,7 @@ function App() {
}
/>
<Route
path="/log"
path='/log'
element={
<PrivateRoute>
<Log />
@@ -200,7 +200,7 @@ function App() {
}
/>
<Route
path="/detail"
path='/detail'
element={
<PrivateRoute>
<Suspense fallback={<Loading></Loading>}>
@@ -210,7 +210,7 @@ function App() {
}
/>
<Route
path="/midjourney"
path='/midjourney'
element={
<PrivateRoute>
<Suspense fallback={<Loading></Loading>}>
@@ -220,7 +220,7 @@ function App() {
}
/>
<Route
path="/about"
path='/about'
element={
<Suspense fallback={<Loading></Loading>}>
<About />
@@ -228,16 +228,14 @@ function App() {
}
/>
<Route
path="/chat"
path='/chat'
element={
<Suspense fallback={<Loading></Loading>}>
<Chat />
</Suspense>
}
/>
<Route path="*" element={
<NotFound />
} />
<Route path='*' element={<NotFound />} />
</Routes>
</Layout.Content>
</Layout>