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
f73fb761
Commit
f73fb761
authored
Apr 29, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix deploy
parent
9f74038d
Pipeline
#21453
passed with stages
in 15 minutes and 44 seconds
Changes
3
Pipelines
1
Hide 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";
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
<
{
code
:
number
;
row
:
number
;
...
...
@@ -52,7 +57,7 @@ export const Card: React.FC<{
"
--trans-time
"
:
`${transTime}s`
,
"
--highlight-on
"
:
highlight
?
1
:
0
,
"
--card-img
"
:
facedown
?
`url(${
NeosConfig.assetsPath
+ "/card_back.jpg"})`
?
`url(${
ASSETS_BASE
+ "/card_back.jpg"})`
:
`url(${NeosConfig.cardImgUrl + "/" + code + ".jpg"})`
,
...
style
,
}
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