Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biluo Shen
Neos
Commits
e6670a75
Commit
e6670a75
authored
Jun 17, 2024
by
BBeretta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat/language-translation (prettier fixes)
parent
78517db3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
src/ui/BuildDeck/DeckDatabase/index.tsx
src/ui/BuildDeck/DeckDatabase/index.tsx
+5
-5
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+2
-2
src/ui/Setting/Audio.tsx
src/ui/Setting/Audio.tsx
+1
-1
src/ui/Setting/index.tsx
src/ui/Setting/index.tsx
+3
-3
No files found.
src/ui/BuildDeck/DeckDatabase/index.tsx
View file @
e6670a75
...
...
@@ -11,6 +11,7 @@ import { isEqual } from "lodash-es";
import
{
OverlayScrollbarsComponentRef
}
from
"
overlayscrollbars-react
"
;
import
React
,
{
useCallback
,
useEffect
,
useRef
,
useState
}
from
"
react
"
;
import
{
useDrop
}
from
"
react-dnd
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
CardMeta
,
searchCards
}
from
"
@/api
"
;
import
{
isToken
}
from
"
@/common
"
;
...
...
@@ -22,7 +23,6 @@ import styles from "../index.module.scss";
import
{
editDeckStore
}
from
"
../store
"
;
import
{
CardResults
}
from
"
./CardResults
"
;
import
{
DeckResults
,
freshMdrpoDecks
}
from
"
./DeckResults
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
/** 卡片库,选择卡片加入正在编辑的卡组 */
export
const
DeckDatabase
:
React
.
FC
=
()
=>
{
...
...
@@ -126,7 +126,7 @@ export const DeckDatabase: React.FC = () => {
<
div
className=
{
styles
.
container
}
ref=
{
dropRef
}
>
<
Space
className=
{
styles
.
title
}
direction=
"horizontal"
>
<
Input
placeholder=
{
i18n
(
"
KeywordsPlaceholder
"
)
}
placeholder=
{
i18n
(
"
KeywordsPlaceholder
"
)
}
bordered=
{
false
}
suffix=
{
<
Button
...
...
@@ -176,7 +176,7 @@ export const DeckDatabase: React.FC = () => {
icon=
{
<
FilterOutlined
/>
}
onClick=
{
showFilterModal
}
>
{
i18n
(
"
Filter
"
)
}
{
i18n
(
"
Filter
"
)
}
</
Button
>
)
}
<
Dropdown
...
...
@@ -192,7 +192,7 @@ export const DeckDatabase: React.FC = () => {
icon=
{
<
SortAscendingOutlined
/>
}
>
<
span
>
{
i18n
(
"
SortBy
"
)
}
{
i18n
(
"
SortBy
"
)
}
<
span
className=
{
styles
[
"
search-count
"
]
}
>
(
{
searchCardResult
.
length
}
)
</
span
>
...
...
@@ -211,7 +211,7 @@ export const DeckDatabase: React.FC = () => {
handleSearch
(
emptySearchConditions
);
}
}
>
{
i18n
(
"
Reset
"
)
}
{
i18n
(
"
Reset
"
)
}
</
Button
>
</
div
>
<
ScrollableArea
className=
{
styles
[
"
search-cards-container
"
]
}
ref=
{
ref
}
>
...
...
src/ui/Layout/index.tsx
View file @
e6670a75
import
{
App
,
Avatar
,
Dropdown
}
from
"
antd
"
;
import
classNames
from
"
classnames
"
;
import
React
,
{
useEffect
,
useState
}
from
"
react
"
;
import
React
,
{
useEffect
}
from
"
react
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
type
LoaderFunction
,
...
...
src/ui/Setting/Audio.tsx
View file @
e6670a75
import
{
Checkbox
,
Form
,
Slider
,
Space
,
Switch
}
from
"
antd
"
;
import
React
from
"
react
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
settingStore
}
from
"
@/stores/settingStore
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
export
const
AudioSetting
:
React
.
FC
=
()
=>
{
const
{
audio
}
=
useSnapshot
(
settingStore
);
...
...
src/ui/Setting/index.tsx
View file @
e6670a75
...
...
@@ -2,11 +2,11 @@ import { ConfigProvider, Modal, Tabs, TabsProps } from "antd";
import
zhCN
from
"
antd/locale/zh_CN
"
;
import
React
from
"
react
"
;
import
{
render
,
unmountComponentAtNode
}
from
"
react-dom
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
I18NSelector
}
from
"
../I18N
"
;
import
{
theme
}
from
"
../theme
"
;
import
{
AudioSetting
}
from
"
./Audio
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
I18NSelector
}
from
"
../I18N
"
;
/** 设置面板属性 */
export
interface
SettingProps
{
...
...
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