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
love_飞影
Neos
Commits
59374992
Commit
59374992
authored
Aug 04, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fmt and small
parent
288d456c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
18 deletions
+8
-18
src/ui/BuildDeck/index.module.scss
src/ui/BuildDeck/index.module.scss
+1
-0
src/ui/BuildDeck/index.tsx
src/ui/BuildDeck/index.tsx
+3
-12
src/ui/NewMatch/index.tsx
src/ui/NewMatch/index.tsx
+4
-6
No files found.
src/ui/BuildDeck/index.module.scss
View file @
59374992
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
.content
{
.content
{
display
:
flex
;
display
:
flex
;
flex
:
1
;
padding-bottom
:
0
;
padding-bottom
:
0
;
padding-right
:
1rem
;
padding-right
:
1rem
;
.deck
{
.deck
{
...
...
src/ui/BuildDeck/index.tsx
View file @
59374992
...
@@ -7,22 +7,13 @@ import {
...
@@ -7,22 +7,13 @@ import {
SortAscendingOutlined
,
SortAscendingOutlined
,
UndoOutlined
,
UndoOutlined
,
}
from
"
@ant-design/icons
"
;
}
from
"
@ant-design/icons
"
;
import
{
import
{
Button
,
ConfigProvider
,
Input
,
Space
,
type
ThemeConfig
}
from
"
antd
"
;
Button
,
ConfigProvider
,
Input
,
Layout
,
Space
,
type
ThemeConfig
,
}
from
"
antd
"
;
import
{
Background
}
from
"
../Shared
"
;
import
{
Background
}
from
"
../Shared
"
;
import
{
CardDetail
}
from
"
./CardDetail
"
;
import
{
CardDetail
}
from
"
./CardDetail
"
;
import
{
DeckSelect
}
from
"
./DeckSelect
"
;
import
{
DeckSelect
}
from
"
./DeckSelect
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
const
{
Content
,
Sider
}
=
Layout
;
const
theme
:
ThemeConfig
=
{
const
theme
:
ThemeConfig
=
{
components
:
{
components
:
{
Layout
:
{
Layout
:
{
...
@@ -55,10 +46,10 @@ export const Component: React.FC = () => {
...
@@ -55,10 +46,10 @@ export const Component: React.FC = () => {
</
div
>
</
div
>
<
CardDetail
code=
{
123
}
open=
{
false
}
onClose=
{
()
=>
{}
}
/>
<
CardDetail
code=
{
123
}
open=
{
false
}
onClose=
{
()
=>
{}
}
/>
</
div
>
</
div
>
<
Content
className=
{
styles
.
content
}
>
<
div
className=
{
styles
.
content
}
>
<
Deck
/>
<
Deck
/>
<
CardSelect
/>
<
CardSelect
/>
</
Content
>
</
div
>
</
div
>
</
div
>
</
ConfigProvider
>
</
ConfigProvider
>
);
);
...
...
src/ui/NewMatch/index.tsx
View file @
59374992
import
{
EditFilled
,
SettingFilled
}
from
"
@ant-design/icons
"
;
import
{
ConfigProvider
,
Select
,
Space
}
from
"
antd
"
;
import
{
ConfigProvider
,
Select
,
Space
}
from
"
antd
"
;
import
classNames
from
"
classnames
"
;
import
classNames
from
"
classnames
"
;
import
{
type
LoaderFunction
}
from
"
react-router-dom
"
;
import
{
type
LoaderFunction
}
from
"
react-router-dom
"
;
...
@@ -5,13 +6,9 @@ import { type LoaderFunction } from "react-router-dom";
...
@@ -5,13 +6,9 @@ import { type LoaderFunction } from "react-router-dom";
import
{
CookieKeys
,
setCookie
}
from
"
@/api
"
;
import
{
CookieKeys
,
setCookie
}
from
"
@/api
"
;
import
{
accountStore
,
type
User
}
from
"
@/stores
"
;
import
{
accountStore
,
type
User
}
from
"
@/stores
"
;
import
{
Background
,
IconFont
}
from
"
@/ui/Shared
"
;
import
{
Background
,
IconFont
}
from
"
@/ui/Shared
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
SettingFilled
,
EditFilled
}
from
"
@ant-design/icons
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
const
NeosConfig
=
useConfig
();
export
const
loader
:
LoaderFunction
=
()
=>
{
export
const
loader
:
LoaderFunction
=
()
=>
{
const
sso
=
new
URLSearchParams
(
location
.
search
).
get
(
"
sso
"
);
const
sso
=
new
URLSearchParams
(
location
.
search
).
get
(
"
sso
"
);
const
user
=
sso
?
getSSOUser
(
new
URLSearchParams
(
atob
(
sso
)))
:
undefined
;
const
user
=
sso
?
getSSOUser
(
new
URLSearchParams
(
atob
(
sso
)))
:
undefined
;
...
@@ -96,8 +93,9 @@ const Mode: React.FC<{
...
@@ -96,8 +93,9 @@ const Mode: React.FC<{
title
:
string
;
title
:
string
;
desc
:
string
;
desc
:
string
;
icon
:
React
.
ReactNode
;
icon
:
React
.
ReactNode
;
}
>
=
({
title
,
desc
,
icon
})
=>
(
onClick
?:
()
=>
void
;
<
div
className=
{
styles
.
mode
}
>
}
>
=
({
title
,
desc
,
icon
,
onClick
})
=>
(
<
div
className=
{
styles
.
mode
}
onClick=
{
onClick
}
>
<
div
className=
{
styles
.
icon
}
>
{
icon
}
</
div
>
<
div
className=
{
styles
.
icon
}
>
{
icon
}
</
div
>
<
div
className=
{
styles
.
title
}
>
{
title
}
</
div
>
<
div
className=
{
styles
.
title
}
>
{
title
}
</
div
>
<
div
className=
{
styles
.
desc
}
>
{
desc
}
</
div
>
<
div
className=
{
styles
.
desc
}
>
{
desc
}
</
div
>
...
...
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