Merge branch 'staging' of https://github.com/VAR-Virtual-Air-Rescue/var-monorepo into staging
This commit is contained in:
@@ -13,7 +13,7 @@ export const useSounds = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
newMissionSound.current = new Audio("/sounds/Melder3.wav");
|
newMissionSound.current = new Audio("/sounds/DME-new-mission.wav");
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const AircraftPopupContent = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const { data: missions } = useQuery({
|
const { data: missions } = useQuery({
|
||||||
queryKey: ["missions", "missions-map"],
|
queryKey: ["missions", "missions-aircraft-marker", aircraft.id],
|
||||||
queryFn: () =>
|
queryFn: () =>
|
||||||
getMissionsAPI({
|
getMissionsAPI({
|
||||||
state: "running",
|
state: "running",
|
||||||
@@ -159,7 +159,7 @@ const AircraftPopupContent = ({
|
|||||||
{aircraft.fmsStatus}
|
{aircraft.fmsStatus}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="min-w-[130px] cursor-pointer px-2"
|
className="cursor-pointer px-2"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: `${FMS_STATUS_COLORS[aircraft.fmsStatus]}`,
|
backgroundColor: `${FMS_STATUS_COLORS[aircraft.fmsStatus]}`,
|
||||||
borderBottom:
|
borderBottom:
|
||||||
@@ -179,10 +179,11 @@ const AircraftPopupContent = ({
|
|||||||
{aircraft.Station.bosUse === "DUAL_USE" && "(dual use)"}
|
{aircraft.Station.bosUse === "DUAL_USE" && "(dual use)"}
|
||||||
{aircraft.Station.bosUse === "PRIMARY" && "(primär)"}
|
{aircraft.Station.bosUse === "PRIMARY" && "(primär)"}
|
||||||
{aircraft.Station.bosUse === "SECONDARY" && "(sekundär)"}
|
{aircraft.Station.bosUse === "SECONDARY" && "(sekundär)"}
|
||||||
|
{aircraft.Station.bosUse === "SPECIAL_OPS" && "(Special OPS)"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="w-150 cursor-pointer px-2"
|
className="flex-1 cursor-pointer overflow-x-hidden px-2"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: `${FMS_STATUS_COLORS[aircraft.fmsStatus]}`,
|
backgroundColor: `${FMS_STATUS_COLORS[aircraft.fmsStatus]}`,
|
||||||
borderBottom:
|
borderBottom:
|
||||||
@@ -195,9 +196,10 @@ const AircraftPopupContent = ({
|
|||||||
>
|
>
|
||||||
<span className="text-base font-medium text-white">Einsatz</span>
|
<span className="text-base font-medium text-white">Einsatz</span>
|
||||||
<br />
|
<br />
|
||||||
<span className="text-sm font-medium text-white">
|
{!mission?.publicId && <span className="text-sm text-gray-400">Kein Einsatz</span>}
|
||||||
{mission?.publicId || "kein Einsatz"}
|
{mission?.publicId && (
|
||||||
</span>
|
<span className="text-sm font-medium text-white">{mission.publicId}</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="flex cursor-pointer items-center justify-center px-4"
|
className="flex cursor-pointer items-center justify-center px-4"
|
||||||
@@ -372,7 +374,7 @@ const AircraftMarker = ({ aircraft }: { aircraft: ConnectedAircraft & { Station:
|
|||||||
closeOnClick={false}
|
closeOnClick={false}
|
||||||
autoPan={false}
|
autoPan={false}
|
||||||
wrapperClassName="relative"
|
wrapperClassName="relative"
|
||||||
className="w-[502px]"
|
className="w-[512px]"
|
||||||
>
|
>
|
||||||
<div style={{ height: "auto", maxHeight: "90vh", overflowY: "auto" }}>
|
<div style={{ height: "auto", maxHeight: "90vh", overflowY: "auto" }}>
|
||||||
<AircraftPopupContent aircraft={aircraft} />
|
<AircraftPopupContent aircraft={aircraft} />
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const SettingsBtn = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
testSoundRef.current = new Audio("/sounds/Melder3.wav");
|
testSoundRef.current = new Audio("/sounds/DME-new-mission.wav");
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ export const useAudioStore = create<TalkState>((set, get) => ({
|
|||||||
set({ state: "connected", room, message: null });
|
set({ state: "connected", room, message: null });
|
||||||
})
|
})
|
||||||
.on(RoomEvent.Disconnected, () => {
|
.on(RoomEvent.Disconnected, () => {
|
||||||
set({ state: "disconnected" });
|
set({ state: "disconnected", speakingParticipants: [], transmitBlocked: false });
|
||||||
|
|
||||||
handleDisconnect();
|
handleDisconnect();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- AlterEnum
|
||||||
|
ALTER TYPE "BosUse" ADD VALUE 'SPECIAL_OPS';
|
||||||
@@ -2,6 +2,7 @@ enum BosUse {
|
|||||||
PRIMARY
|
PRIMARY
|
||||||
SECONDARY
|
SECONDARY
|
||||||
DUAL_USE
|
DUAL_USE
|
||||||
|
SPECIAL_OPS
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Country {
|
enum Country {
|
||||||
|
|||||||
Reference in New Issue
Block a user