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
f73fb761
Commit
f73fb761
authored
Apr 29, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix deploy
parent
9f74038d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
neos-assets/background.png
neos-assets/background.png
+0
-0
neos-assets/card_slot.png
neos-assets/card_slot.png
+0
-0
src/ui/Duel/PlayMat/Card.tsx
src/ui/Duel/PlayMat/Card.tsx
+6
-1
No files found.
neos-assets/background.png
deleted
100644 → 0
View file @
9f74038d
552 KB
neos-assets/card_slot.png
deleted
100644 → 0
View file @
9f74038d
5.18 KB
src/ui/Duel/PlayMat/Card.tsx
View file @
f73fb761
...
@@ -7,6 +7,11 @@ import { useConfig } from "@/config";
...
@@ -7,6 +7,11 @@ import { useConfig } from "@/config";
const
NeosConfig
=
useConfig
();
const
NeosConfig
=
useConfig
();
const
ASSETS_BASE
=
import
.
meta
.
env
.
BASE_URL
==
"
/
"
?
NeosConfig
.
assetsPath
:
import
.
meta
.
env
.
BASE_URL
+
NeosConfig
.
assetsPath
;
export
const
Card
:
React
.
FC
<
{
export
const
Card
:
React
.
FC
<
{
code
:
number
;
code
:
number
;
row
:
number
;
row
:
number
;
...
@@ -52,7 +57,7 @@ export const Card: React.FC<{
...
@@ -52,7 +57,7 @@ export const Card: React.FC<{
"
--trans-time
"
:
`${transTime}s`
,
"
--trans-time
"
:
`${transTime}s`
,
"
--highlight-on
"
:
highlight
?
1
:
0
,
"
--highlight-on
"
:
highlight
?
1
:
0
,
"
--card-img
"
:
facedown
"
--card-img
"
:
facedown
?
`url(${
NeosConfig.assetsPath
+ "/card_back.jpg"})`
?
`url(${
ASSETS_BASE
+ "/card_back.jpg"})`
:
`url(${NeosConfig.cardImgUrl + "/" + code + ".jpg"})`
,
:
`url(${NeosConfig.cardImgUrl + "/" + code + ".jpg"})`
,
...
style
,
...
style
,
}
as
any
}
as
any
...
...
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