Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
516d439b
authored
Jan 21, 2024
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove unused import
parent
56939a54
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1 additions
and
18 deletions
+1
-18
web/src/components/ChannelsTable.js
+0
-1
web/src/components/Footer.js
+0
-1
web/src/components/HeaderBar.js
+0
-1
web/src/components/LogsTable.js
+1
-4
web/src/components/MjLogsTable.js
+0
-1
web/src/components/TokensTable.js
+0
-4
web/src/index.js
+0
-1
web/src/pages/Channel/index.js
+0
-1
web/src/pages/Detail/index.js
+0
-1
web/src/pages/Redemption/index.js
+0
-2
web/src/pages/User/index.js
+0
-1
No files found.
web/src/components/ChannelsTable.js
View file @
516d439b
...
@@ -2,7 +2,6 @@ import React, {useEffect, useState} from 'react';
...
@@ -2,7 +2,6 @@ import React, {useEffect, useState} from 'react';
import
{
import
{
API
,
API
,
isMobile
,
isMobile
,
setPromptShown
,
shouldShowPrompt
,
shouldShowPrompt
,
showError
,
showError
,
showInfo
,
showInfo
,
...
...
web/src/components/Footer.js
View file @
516d439b
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Container
,
Segment
}
from
'semantic-ui-react'
;
import
{
getFooterHTML
,
getSystemName
}
from
'../helpers'
;
import
{
getFooterHTML
,
getSystemName
}
from
'../helpers'
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
...
...
web/src/components/HeaderBar.js
View file @
516d439b
...
@@ -2,7 +2,6 @@ import React, {useContext, useEffect, useRef, useState} from 'react';
...
@@ -2,7 +2,6 @@ import React, {useContext, useEffect, useRef, useState} from 'react';
import
{
Link
,
useNavigate
}
from
'react-router-dom'
;
import
{
Link
,
useNavigate
}
from
'react-router-dom'
;
import
{
UserContext
}
from
'../context/User'
;
import
{
UserContext
}
from
'../context/User'
;
import
{
Button
,
Container
,
Icon
,
Menu
,
Segment
}
from
'semantic-ui-react'
;
import
{
API
,
getLogo
,
getSystemName
,
isAdmin
,
isMobile
,
showSuccess
}
from
'../helpers'
;
import
{
API
,
getLogo
,
getSystemName
,
isAdmin
,
isMobile
,
showSuccess
}
from
'../helpers'
;
import
'../index.css'
;
import
'../index.css'
;
...
...
web/src/components/LogsTable.js
View file @
516d439b
...
@@ -20,10 +20,7 @@ import {
...
@@ -20,10 +20,7 @@ import {
}
from
'@douyinfe/semi-icons'
;
}
from
'@douyinfe/semi-icons'
;
import
Paragraph
from
"@douyinfe/semi-ui/lib/es/typography/paragraph"
;
import
Paragraph
from
"@douyinfe/semi-ui/lib/es/typography/paragraph"
;
const
{
Sider
,
Content
,
Header
}
=
Layout
;
const
{
Header
}
=
Layout
;
const
{
Column
}
=
Table
;
function
renderTimestamp
(
timestamp
)
{
function
renderTimestamp
(
timestamp
)
{
return
(
return
(
<>
<>
...
...
web/src/components/MjLogsTable.js
View file @
516d439b
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Label
}
from
'semantic-ui-react'
;
import
{
API
,
copy
,
isAdmin
,
showError
,
showSuccess
,
timestamp2string
}
from
'../helpers'
;
import
{
API
,
copy
,
isAdmin
,
showError
,
showSuccess
,
timestamp2string
}
from
'../helpers'
;
import
{
import
{
...
...
web/src/components/TokensTable.js
View file @
516d439b
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Link
}
from
'react-router-dom'
;
import
{
API
,
copy
,
isAdmin
,
showError
,
showSuccess
,
showWarning
,
timestamp2string
}
from
'../helpers'
;
import
{
API
,
copy
,
isAdmin
,
showError
,
showSuccess
,
showWarning
,
timestamp2string
}
from
'../helpers'
;
import
{
ITEMS_PER_PAGE
}
from
'../constants'
;
import
{
ITEMS_PER_PAGE
}
from
'../constants'
;
...
@@ -21,9 +20,6 @@ import {
...
@@ -21,9 +20,6 @@ import {
IconTreeTriangleDown
,
IconTreeTriangleDown
,
}
from
'@douyinfe/semi-icons'
;
}
from
'@douyinfe/semi-icons'
;
import
EditToken
from
"../pages/Token/EditToken"
;
import
EditToken
from
"../pages/Token/EditToken"
;
const
{
Column
}
=
Table
;
const
COPY_OPTIONS
=
[
const
COPY_OPTIONS
=
[
{
key
:
'next'
,
text
:
'ChatGPT Next Web'
,
value
:
'next'
},
{
key
:
'next'
,
text
:
'ChatGPT Next Web'
,
value
:
'next'
},
{
key
:
'ama'
,
text
:
'AMA 问天'
,
value
:
'ama'
},
{
key
:
'ama'
,
text
:
'AMA 问天'
,
value
:
'ama'
},
...
...
web/src/index.js
View file @
516d439b
import
{
initVChartSemiTheme
}
from
'@visactor/vchart-semi-theme'
;
import
{
initVChartSemiTheme
}
from
'@visactor/vchart-semi-theme'
;
import
VChart
from
"@visactor/vchart"
;
import
React
from
'react'
;
import
React
from
'react'
;
import
ReactDOM
from
'react-dom/client'
;
import
ReactDOM
from
'react-dom/client'
;
import
{
BrowserRouter
}
from
'react-router-dom'
;
import
{
BrowserRouter
}
from
'react-router-dom'
;
...
...
web/src/pages/Channel/index.js
View file @
516d439b
import
React
from
'react'
;
import
React
from
'react'
;
import
ChannelsTable
from
'../../components/ChannelsTable'
;
import
ChannelsTable
from
'../../components/ChannelsTable'
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
import
RedemptionsTable
from
"../../components/RedemptionsTable"
;
const
File
=
()
=>
(
const
File
=
()
=>
(
<>
<>
...
...
web/src/pages/Detail/index.js
View file @
516d439b
import
React
,
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
{
Button
,
Col
,
Form
,
Layout
,
Row
,
Spin
}
from
"@douyinfe/semi-ui"
;
import
{
Button
,
Col
,
Form
,
Layout
,
Row
,
Spin
}
from
"@douyinfe/semi-ui"
;
import
VChart
from
'@visactor/vchart'
;
import
VChart
from
'@visactor/vchart'
;
import
{
useEffectOnce
}
from
"usehooks-ts"
;
import
{
API
,
isAdmin
,
showError
,
timestamp2string
,
timestamp2string1
}
from
"../../helpers"
;
import
{
API
,
isAdmin
,
showError
,
timestamp2string
,
timestamp2string1
}
from
"../../helpers"
;
import
{
import
{
getQuotaWithUnit
,
modelColorMap
,
getQuotaWithUnit
,
modelColorMap
,
...
...
web/src/pages/Redemption/index.js
View file @
516d439b
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Segment
,
Header
}
from
'semantic-ui-react'
;
import
RedemptionsTable
from
'../../components/RedemptionsTable'
;
import
RedemptionsTable
from
'../../components/RedemptionsTable'
;
import
TokensTable
from
"../../components/TokensTable"
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
const
Redemption
=
()
=>
(
const
Redemption
=
()
=>
(
...
...
web/src/pages/User/index.js
View file @
516d439b
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Segment
,
Header
}
from
'semantic-ui-react'
;
import
UsersTable
from
'../../components/UsersTable'
;
import
UsersTable
from
'../../components/UsersTable'
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment