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
04ba012f
authored
May 23, 2025
by
Apple\Apple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
️Refactor: Redemptions Page
parent
07d87d60
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
14 deletions
+5
-14
web/src/components/RedemptionsTable.js
+0
-0
web/src/i18n/locales/en.json
+3
-1
web/src/pages/Redemption/index.js
+1
-11
web/src/pages/Token/index.js
+1
-2
No files found.
web/src/components/RedemptionsTable.js
View file @
04ba012f
This diff is collapsed.
Click to expand it.
web/src/i18n/locales/en.json
View file @
04ba012f
...
@@ -1432,5 +1432,6 @@
...
@@ -1432,5 +1432,6 @@
"30个"
:
"30 items"
,
"30个"
:
"30 items"
,
"100个"
:
"100 items"
,
"100个"
:
"100 items"
,
"Midjourney 任务记录"
:
"Midjourney Task Records"
,
"Midjourney 任务记录"
:
"Midjourney Task Records"
,
"任务记录"
:
"Task Records"
"任务记录"
:
"Task Records"
,
"兑换码可以批量生成和分发,适合用于推广活动或批量充值。"
:
"Redemption codes can be batch generated and distributed, suitable for promotion activities or bulk recharge."
}
}
\ No newline at end of file
web/src/pages/Redemption/index.js
View file @
04ba012f
import
React
from
'react'
;
import
React
from
'react'
;
import
RedemptionsTable
from
'../../components/RedemptionsTable'
;
import
RedemptionsTable
from
'../../components/RedemptionsTable'
;
import
{
Layout
}
from
'@douyinfe/semi-ui'
;
import
{
useTranslation
}
from
'react-i18next'
;
const
Redemption
=
()
=>
{
const
Redemption
=
()
=>
{
const
{
t
}
=
useTranslation
();
return
(
return
(
<>
<>
<
Layout
>
<
RedemptionsTable
/>
<
Layout
.
Header
>
<
h3
>
{
t
(
'管理兑换码'
)}
<
/h3
>
<
/Layout.Header
>
<
Layout
.
Content
>
<
RedemptionsTable
/>
<
/Layout.Content
>
<
/Layout
>
<
/
>
<
/
>
);
);
};
};
...
...
web/src/pages/Token/index.js
View file @
04ba012f
import
React
from
'react'
;
import
React
from
'react'
;
import
TokensTable
from
'../../components/TokensTable'
;
import
TokensTable
from
'../../components/TokensTable'
;
import
{
useTranslation
}
from
'react-i18next'
;
const
Token
=
()
=>
{
const
Token
=
()
=>
{
const
{
t
}
=
useTranslation
();
return
(
return
(
<>
<>
<
TokensTable
/>
<
TokensTable
/>
...
...
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