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
dc12d558
Commit
dc12d558
authored
Mar 15, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7b46d5c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/ui/Duel/main.tsx
src/ui/Duel/main.tsx
+0
-4
src/ui/WaitRoom.tsx
src/ui/WaitRoom.tsx
+6
-0
No files found.
src/ui/Duel/main.tsx
View file @
dc12d558
...
@@ -31,8 +31,6 @@ import {
...
@@ -31,8 +31,6 @@ import {
selectMeInitInfo
,
selectMeInitInfo
,
selectOpInitInfo
,
selectOpInitInfo
,
}
from
"
../../reducers/duel/initInfoSlice
"
;
}
from
"
../../reducers/duel/initInfoSlice
"
;
//@ts-ignore
import
rustInit
from
"
rust-src
"
;
// Ref: https://github.com/brianzinn/react-babylonjs/issues/126
// Ref: https://github.com/brianzinn/react-babylonjs/issues/126
const
NeosDuel
=
()
=>
{
const
NeosDuel
=
()
=>
{
...
@@ -41,8 +39,6 @@ const NeosDuel = () => {
...
@@ -41,8 +39,6 @@ const NeosDuel = () => {
useEffect
(()
=>
{
useEffect
(()
=>
{
const
init
=
async
()
=>
{
const
init
=
async
()
=>
{
await
initStrings
();
await
initStrings
();
const
wasm
=
await
rustInit
();
console
.
log
(
wasm
);
};
};
if
(
initialRender
.
current
)
{
if
(
initialRender
.
current
)
{
...
...
src/ui/WaitRoom.tsx
View file @
dc12d558
...
@@ -44,6 +44,8 @@ import { useParams } from "react-router-dom";
...
@@ -44,6 +44,8 @@ import { useParams } from "react-router-dom";
import
{
selectDuelStart
}
from
"
../reducers/moraSlice
"
;
import
{
selectDuelStart
}
from
"
../reducers/moraSlice
"
;
import
NeosConfig
from
"
../../neos.config.json
"
;
import
NeosConfig
from
"
../../neos.config.json
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
//@ts-ignore
import
rustInit
from
"
rust-src
"
;
const
READY_STATE
=
"
ready
"
;
const
READY_STATE
=
"
ready
"
;
...
@@ -75,6 +77,10 @@ const WaitRoom = () => {
...
@@ -75,6 +77,10 @@ const WaitRoom = () => {
cmd
:
sqliteCmd
.
INIT
,
cmd
:
sqliteCmd
.
INIT
,
initInfo
:
{
dbUrl
:
NeosConfig
.
cardsDbUrl
},
initInfo
:
{
dbUrl
:
NeosConfig
.
cardsDbUrl
},
});
});
// 初始化wasm
const
wasm
=
await
rustInit
();
console
.
log
(
wasm
);
};
};
init
();
init
();
...
...
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