Skip to content

Commit

Permalink
Merge pull request #217 from elmadev/dev
Browse files Browse the repository at this point in the history
Live release 19 april 2024
  • Loading branch information
sunehs authored Apr 19, 2024
2 parents 7ec2e80 + 9ad4971 commit 7bc83b8
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"react-tiny-bbcode": "^0.1.4",
"react-window": "^1.8.6",
"recharts": "^2.2.0",
"recplayer-react": "^1.6.4",
"recplayer-react": "^1.7.1",
"styled-components": "^5.2.3",
"universal-cookie": "^4.0.4",
"use-debounce": "^6.0.1",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default function Preview({
<Recplayer
rec={getRecUri()}
lev={`${config.dlUrl}level/${previewRec.LevelIndex}?UUID=${previewRec.UUID}`}
shirt={[
`${config.dlUrl}shirt/${previewRec.DrivenByData.KuskiIndex}`,
]}
controls
autoPlay="yes"
/>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Recplayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const Recplayer = props => {
const {
rec,
lev,
shirt,
width,
height,
controls,
Expand Down Expand Up @@ -57,9 +58,9 @@ const Recplayer = props => {
<>
{RecPlayerReact && lev ? (
<RecPlayerReact
key={rec}
recUrl={rec}
levUrl={lev}
shirtUrl={shirt}
width={width}
height={height}
zoom={zoom}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/battle/RecView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const RecView = props => {
`${config.dlUrl}battlereplay/${BattleIndex}`
}
lev={`${config.dlUrl}level/${levelIndex}`}
shirt={[
`${config.dlUrl}shirt/${player?.Kuski?.KuskiIndex}`,
]}
autoPlay={autoPlayRecs ? 'if-visible' : 'no'}
controls
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/battle/RightBarContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const RightBarContainer = props => {
<Header h3>Leader history</Header>
</AccordionSummary>
<AccordionDetails>
{allBattleTimes !== null && allBattleTimes !== [] ? (
{allBattleTimes !== null ? (
<LeaderHistory
allFinished={allBattleTimes}
openReplay={
Expand Down
3 changes: 3 additions & 0 deletions src/pages/cup/Personal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ const Personal = () => {
replay.Time,
)}
lev={`${config.dlUrl}level/${e.LevelIndex}`}
shirt={[
`${config.dlUrl}shirt/${replay.KuskiData.KuskiIndex}`,
]}
height={400}
controls
/>
Expand Down
1 change: 1 addition & 0 deletions src/pages/cup/Team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ const Team = () => {
replay.Time,
)}${getMergeRecUri(e.CupIndex)}`}
lev={`${config.dlUrl}level/${e.LevelIndex}`}
shirt={[`${config.dlUrl}shirt/${replay.KuskiData.KuskiIndex}`]}
height={400}
controls
/>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/help/tabs/programs.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{ "n": "SLE", "d": "Smibu's Level Editor, Replay Manager and Level Manager.", "l": "https://m-l.fi/files/Elmanager.zip" },
{ "n": "Vectrast", "d": "Makes bmp from lev file and back.", "l": "https://up.elma.online/u/lqrhf9h280/vectrast.zip" },
{ "n": "Verzio Maker", "d": "Converts Elma levs to Across levs in the Verzio file format - Moving objects. Made by sunl.", "l": "https://up.elma.online/u/59w4avs59h/Verzio_Maker.zip" },
{ "n": "ZLE", "d": "Zebra's Level Editor.", "l": "https://up.elma.online/u/ur73jygq8m/ZLE_v1.0.zip" }
{ "n": "ZLE (v1.1)", "d": "Zebra's Level Editor.", "l": "https://up.elma.online/u/3hh7dzheve/ZLE_v1.1.zip" }
] },
{ "name": "LGR", "items": [
{ "n": "Change LGR", "d": "Change easily lgr before entering Elma.", "l": "https://up.elma.online/u/hj7mmpj2uv/chanlgrs.rar" },
Expand Down Expand Up @@ -70,7 +70,7 @@
{ "n": "Elma Skip", "d": "Skips from 1 to 54 internal levels.", "l": "https://up.elma.online/u/h8r92ksknc/elmaskip.zip" },
{ "n": "Elma Text", "d": "Changes text in game (Only for 1.0v).", "l": "https://up.elma.online/u/fwchur0m24/elmatext.zip" },
{ "n": "Elma Ultimate Dvd", "d": "Collection of the best Elma (and Across) stuff made from 1997 to 2010.", "l": "https://mega.co.nz/#!mVNhWCDZ!DoDJ7BAVP-j9Ew6k2P4x-h6eOBkUv4uswbHgPebgGaM" },
{ "n": "EOL Reso Fix", "d": "Fixes high resolution problems.", "l": "https://up.elma.online/u/uf5r4w5eh2/eolresofix.exe" },
{ "n": "EOL Reso Fix", "d": "Fixes high resolution problems. Built-in in EOL v1.0.11 and newer.", "l": "https://up.elma.online/u/uf5r4w5eh2/eolresofix.exe" },
{ "n": "EOL Shirts", "d": "Download latest user shirts (.bmp files for your bmp folder).", "l": "https://api.elma.online/dl/allshirts" },
{ "n": "FEM photos", "d": "All images and videos from Finnish Elma Meetings.", "l": [
{ "t": "2014", "l": "http://mm.1g.fi/kuvat/FEM2014" },
Expand Down Expand Up @@ -102,7 +102,7 @@
] },
{ "name": "Save/Load", "items": [
{ "n": "milatools", "d": "Save Load patch made by milagros.", "l": "https://up.elma.online/u/ctnubl9aos/milatools.zip" },
{ "n": "okeSL", "d": "New save load tool made by jonsykkel. - v004a", "l": "https://up.elma.online/u/z9yw27s1bs/okesl004a.zip" },
{ "n": "okeSL (v006)", "d": "New save load tool made by jonsykkel.", "l": "https://up.elma.online/u/o9l724cfy1/okesl006.zip" },
{ "n": "SL Key", "d": "Makes Smibu's Save Load patch keys to be configurable.", "l": "https://up.elma.online/u/uuu2g3rrvp/slkey.zip" },
{ "n": "Smibu's Save Load Patch", "d": "Save Load patch made by Smibu.", "l": "https://up.elma.online/u/o3wm9zfq71/smibu_saveload_patch.zip" }
] }
Expand Down
1 change: 1 addition & 0 deletions src/pages/kuski/Preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function Preview({
<Recplayer
rec={`${config.s3Url}time/${previewRec.TimeFileData.UUID}-${previewRec.TimeFileData.MD5}/${previewRec.TimeIndex}.rec`}
lev={`${config.dlUrl}level/${previewRec.LevelIndex}?UUID=${previewRec.TimeFileData.UUID}`}
shirt={[`${config.dlUrl}shirt/${previewRec.KuskiIndex}`]}
controls
autoPlay="yes"
/>
Expand Down
1 change: 1 addition & 0 deletions src/pages/replay/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ const Replay = ({ ReplayUuid, RecFileName }) => {
<Recplayer
rec={link}
lev={`${config.dlUrl}level/${replay.LevelIndex}`}
shirt={[`${config.dlUrl}shirt/${replay.DrivenByData.KuskiIndex}`]}
controls
/>
)}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14620,10 +14620,10 @@ recompose@^0.27.1:
react-lifecycles-compat "^3.0.2"
symbol-observable "^1.0.4"

recplayer-react@^1.6.4:
version "1.6.4"
resolved "https://registry.yarnpkg.com/recplayer-react/-/recplayer-react-1.6.4.tgz#bd9543180a7e6d90b8fc083ce4564e36b7ce40fd"
integrity sha512-Z/4CA4kM9MEg34UKSP0s1+Dh22D8qMOIGyF+BO+tVhVqwfMxeS9ruLWP0e1ZLxMwsitcTzrV1XLJeqEZ1E0sMw==
recplayer-react@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/recplayer-react/-/recplayer-react-1.7.1.tgz#c3f8cc4eaaf8bca9e0492c412c2618563a156cd0"
integrity sha512-eor8M+wMu4J8+wcvWj+rfad2Y3/BjWNWzgRxdrUcdderVS9Cclwxiy1vA+7sVyJYshiwRUGkX8tZgd/amSgVOQ==

[email protected]:
version "2.2.2"
Expand Down

0 comments on commit 7bc83b8

Please sign in to comment.