From 3edb3f583bcf6db6f006ded40d80c9214a9b0a93 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Mon, 28 Aug 2023 00:25:43 +0200 Subject: [PATCH] [feature-237] use ArcViewer --- .../maps-mangement-components/map-item.component.tsx | 5 ++--- src/renderer/components/shared/iframe-view.component.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/maps-mangement-components/map-item.component.tsx b/src/renderer/components/maps-mangement-components/map-item.component.tsx index 50d95fb1..8601780f 100644 --- a/src/renderer/components/maps-mangement-components/map-item.component.tsx +++ b/src/renderer/components/maps-mangement-components/map-item.component.tsx @@ -72,9 +72,8 @@ export const MapItem = memo(({ hash, title, autor, songAutor, coverUrl, songUrl, }); const songPlaying = useObservable(audioPlayer.playing$.pipe(map(playing => playing && audioPlayer.src === songUrl))); - - const zipUrl = getMapZipUrlFromHash(hash); - const previewUrl = mapId ? `https://skystudioapps.com/bs-viewer/?url=${zipUrl}` : null; + + const previewUrl = mapId ? `https://allpoland.github.io/ArcViewer/?id=${mapId}` : null; const mapUrl = mapId ? `https://beatsaver.com/maps/${mapId}` : null; const authorUrl = autorId ? `https://beatsaver.com/profile/${autorId}` : null; const createdDate = createdAt ? dateFormat(createdAt, "d mmm yyyy") : null; diff --git a/src/renderer/components/shared/iframe-view.component.tsx b/src/renderer/components/shared/iframe-view.component.tsx index ef1d088e..2ca5ebd6 100644 --- a/src/renderer/components/shared/iframe-view.component.tsx +++ b/src/renderer/components/shared/iframe-view.component.tsx @@ -18,7 +18,7 @@ export function BsmIframeView() {
-