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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
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
Pipeline
#22888
failed with stages
in 11 minutes and 47 seconds
Changes
3
Pipelines
1
Show 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 @@
.content
{
display
:
flex
;
flex
:
1
;
padding-bottom
:
0
;
padding-right
:
1rem
;
.deck
{
...
...
src/ui/BuildDeck/index.tsx
View file @
59374992
...
...
@@ -7,22 +7,13 @@ import {
SortAscendingOutlined
,
UndoOutlined
,
}
from
"
@ant-design/icons
"
;
import
{
Button
,
ConfigProvider
,
Input
,
Layout
,
Space
,
type
ThemeConfig
,
}
from
"
antd
"
;
import
{
Button
,
ConfigProvider
,
Input
,
Space
,
type
ThemeConfig
}
from
"
antd
"
;
import
{
Background
}
from
"
../Shared
"
;
import
{
CardDetail
}
from
"
./CardDetail
"
;
import
{
DeckSelect
}
from
"
./DeckSelect
"
;
import
styles
from
"
./index.module.scss
"
;
const
{
Content
,
Sider
}
=
Layout
;
const
theme
:
ThemeConfig
=
{
components
:
{
Layout
:
{
...
...
@@ -55,10 +46,10 @@ export const Component: React.FC = () => {
</
div
>
<
CardDetail
code=
{
123
}
open=
{
false
}
onClose=
{
()
=>
{}
}
/>
</
div
>
<
Content
className=
{
styles
.
content
}
>
<
div
className=
{
styles
.
content
}
>
<
Deck
/>
<
CardSelect
/>
</
Content
>
</
div
>
</
div
>
</
ConfigProvider
>
);
...
...
src/ui/NewMatch/index.tsx
View file @
59374992
import
{
EditFilled
,
SettingFilled
}
from
"
@ant-design/icons
"
;
import
{
ConfigProvider
,
Select
,
Space
}
from
"
antd
"
;
import
classNames
from
"
classnames
"
;
import
{
type
LoaderFunction
}
from
"
react-router-dom
"
;
...
...
@@ -5,13 +6,9 @@ import { type LoaderFunction } from "react-router-dom";
import
{
CookieKeys
,
setCookie
}
from
"
@/api
"
;
import
{
accountStore
,
type
User
}
from
"
@/stores
"
;
import
{
Background
,
IconFont
}
from
"
@/ui/Shared
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
SettingFilled
,
EditFilled
}
from
"
@ant-design/icons
"
;
import
styles
from
"
./index.module.scss
"
;
const
NeosConfig
=
useConfig
();
export
const
loader
:
LoaderFunction
=
()
=>
{
const
sso
=
new
URLSearchParams
(
location
.
search
).
get
(
"
sso
"
);
const
user
=
sso
?
getSSOUser
(
new
URLSearchParams
(
atob
(
sso
)))
:
undefined
;
...
...
@@ -96,8 +93,9 @@ const Mode: React.FC<{
title
:
string
;
desc
:
string
;
icon
:
React
.
ReactNode
;
}
>
=
({
title
,
desc
,
icon
})
=>
(
<
div
className=
{
styles
.
mode
}
>
onClick
?:
()
=>
void
;
}
>
=
({
title
,
desc
,
icon
,
onClick
})
=>
(
<
div
className=
{
styles
.
mode
}
onClick=
{
onClick
}
>
<
div
className=
{
styles
.
icon
}
>
{
icon
}
</
div
>
<
div
className=
{
styles
.
title
}
>
{
title
}
</
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