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
9ef609d1
Commit
9ef609d1
authored
Aug 03, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fmt
parent
41a262fd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
28 deletions
+28
-28
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+5
-4
src/ui/NeosRouter.tsx
src/ui/NeosRouter.tsx
+3
-8
src/ui/NewMatch/index.tsx
src/ui/NewMatch/index.tsx
+6
-4
src/ui/NewWaitRoom/index.tsx
src/ui/NewWaitRoom/index.tsx
+3
-3
src/ui/Shared/Background/index.tsx
src/ui/Shared/Background/index.tsx
+2
-1
src/ui/Shared/index.ts
src/ui/Shared/index.ts
+2
-2
src/ui/Start/index.tsx
src/ui/Start/index.tsx
+4
-3
src/ui/WaitRoom.tsx
src/ui/WaitRoom.tsx
+3
-3
No files found.
src/ui/Layout/index.tsx
View file @
9ef609d1
import
"
@/styles/core.scss
"
;
import
{
NavLink
,
Outlet
,
type
LoaderFunction
}
from
"
react-router-dom
"
;
import
{
Avatar
}
from
"
antd
"
;
import
{
type
LoaderFunction
,
NavLink
,
Outlet
}
from
"
react-router-dom
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
accountStore
,
type
User
}
from
"
@/stores
"
;
import
{
CookieKeys
,
getCookie
}
from
"
@/ui/Shared
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
getCookie
,
CookieKeys
}
from
"
@/ui/Shared
"
;
import
{
Avatar
}
from
"
antd
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
const
NeosConfig
=
useConfig
();
export
const
loader
:
LoaderFunction
=
()
=>
{
...
...
src/ui/NeosRouter.tsx
View file @
9ef609d1
import
React
,
{
Suspense
}
from
"
react
"
;
import
{
createBrowserRouter
,
createRoutesFromElements
,
Route
,
RouterProvider
,
}
from
"
react-router-dom
"
;
import
LazyLoad
,
{
Loading
}
from
"
./LazyLoad
"
;
import
{
createBrowserRouter
,
RouterProvider
}
from
"
react-router-dom
"
;
// import LazyLoad, { Loading } from "./LazyLoad";
// const Match = React.lazy(() => import("./Match"));
// const WaitRoom = React.lazy(() => import("./WaitRoom"));
...
...
src/ui/NewMatch/index.tsx
View file @
9ef609d1
import
{
Link
,
type
LoaderFunction
}
from
"
react-router-dom
"
;
import
{
accountStore
,
type
User
}
from
"
@/stores
"
;
import
{
setCookie
,
CookieKeys
,
Background
}
from
"
@/ui/Shared
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
Select
,
Space
}
from
"
antd
"
;
import
classNames
from
"
classnames
"
;
import
{
type
LoaderFunction
}
from
"
react-router-dom
"
;
import
{
accountStore
,
type
User
}
from
"
@/stores
"
;
import
{
Background
,
CookieKeys
,
setCookie
}
from
"
@/ui/Shared
"
;
import
styles
from
"
./index.module.scss
"
;
export
const
loader
:
LoaderFunction
=
()
=>
{
const
sso
=
new
URLSearchParams
(
location
.
search
).
get
(
"
sso
"
);
...
...
src/ui/NewWaitRoom/index.tsx
View file @
9ef609d1
import
{
useLoaderData
,
type
LoaderFunction
}
from
"
react-router-dom
"
;
import
{
type
LoaderFunction
,
useLoaderData
}
from
"
react-router-dom
"
;
type
Params
=
{
interface
Params
{
player
?:
string
;
passWd
?:
string
;
ip
?:
string
;
}
;
}
export
const
loader
:
LoaderFunction
=
async
({
params
})
=>
params
;
...
...
src/ui/Shared/Background/index.tsx
View file @
9ef609d1
import
{
useEffect
}
from
"
react
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
render
,
unmountComponentAtNode
}
from
"
react-dom
"
;
import
styles
from
"
./index.module.scss
"
;
const
_Background
:
React
.
FC
<
{
style
?:
React
.
CSSProperties
;
innerStyle
?:
React
.
CSSProperties
;
...
...
src/ui/Shared/index.ts
View file @
9ef609d1
export
*
from
"
./Background
"
;
export
*
from
"
./cookies
"
;
export
*
from
"
./css
"
;
export
*
from
"
./IconFont
"
;
export
*
from
"
./YgoCard
"
;
export
*
from
"
./cookies
"
;
export
*
from
"
./Background
"
;
src/ui/Start/index.tsx
View file @
9ef609d1
import
{
RightOutlined
}
from
"
@ant-design/icons
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
accountStore
}
from
"
@/stores
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
accountStore
}
from
"
@/stores
"
;
import
{
Background
}
from
"
@/ui/Shared
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
Background
}
from
"
@/ui/Shared
"
;
const
NeosConfig
=
useConfig
();
...
...
src/ui/WaitRoom.tsx
View file @
9ef609d1
...
...
@@ -20,7 +20,7 @@ import {
Upload
,
}
from
"
antd
"
;
import
React
,
{
useEffect
,
useState
}
from
"
react
"
;
import
{
use
Navigate
,
useLoaderData
}
from
"
react-router-dom
"
;
import
{
use
LoaderData
,
useNavigate
}
from
"
react-router-dom
"
;
import
rustInit
from
"
rust-src
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
...
...
@@ -41,11 +41,11 @@ const {
automation
:
{
isAiMode
},
}
=
useConfig
();
type
Params
=
{
interface
Params
{
player
?:
string
;
passWd
?:
string
;
ip
?:
string
;
}
;
}
export
const
Loader
=
(
params
:
Params
)
=>
params
;
...
...
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