Skip to content

Commit

Permalink
πŸšπŸ¦ΈπŸ»β€β™‚οΈ ↝ [SSG-83 SSG-81]: DMP Content added!
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Dec 6, 2024
1 parent 2f45439 commit 7164bf8
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 8 deletions.
2 changes: 1 addition & 1 deletion citizen
Submodule citizen updated 56 files
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/100879215/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/100879215/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/100879215/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/100879215/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/101178991/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/101178991/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/101178991/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/101178991/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/3774358/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/3774358/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/3774358/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/3774358/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/1.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/2.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/3.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/4.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87655022/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/1.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/2.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/3.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/4.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87658669/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/1.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/2.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/3.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/4.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659096/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/1.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/2.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/3.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/4.jpeg
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/87659996/4.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/88336832.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/88341827.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/88341827/1.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/88341827/2.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/88341827/3.png
+ βˆ’ buckets/telescope/telescope-dailyMinorPlanet/88341827/4.png
+7 βˆ’10 buckets/upload.py
+31 βˆ’0 utils/imgFileChange.py
9 changes: 2 additions & 7 deletions components/Projects/Lidar/JovianVortexHunter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
import React, { useState, useEffect } from "react";
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import ClassificationForm from "../(classifications)/PostForm";
import { Props } from "@/types/Anomalies";

import { Anomaly } from "../Telescopes/Transiting";
import { useActivePlanet } from "@/context/ActivePlanet";

interface Props {
anomalyid: number | bigint;
};

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;

export function StarterJovianVortexHunter({
Expand Down Expand Up @@ -146,8 +143,6 @@ export function LidarJVHSatellite() {
const supabase = useSupabaseClient();
const session = useSession();

const { activePlanet } = useActivePlanet();

const [anomaly, setAnomaly] = useState<Anomaly | null>(null);
const [imageUrl, setImageUrl] = useState<string | null>(null);
const [hasMission20000007, setHasMission20000007] = useState<boolean>(false);
Expand Down Expand Up @@ -193,7 +188,7 @@ export function LidarJVHSatellite() {
const { data: anomalyData, error: anomalyError } = await supabase
.from("anomalies")
.select("*")
.eq("anomalySet", "lidar-jovianVortexHunter")
.eq("anomalySet", "lidar-jovianVortexHunter");

if (anomalyError) {
throw anomalyError;
Expand Down
88 changes: 88 additions & 0 deletions components/Projects/Telescopes/AreWeAlone.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
"use client";

import React, { useEffect, useState } from "react";
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import ClassificationForm from "../(classifications)/PostForm";

import { Anomaly } from "./Transiting";
import { useActivePlanet } from "@/context/ActivePlanet";

import { Props } from "@/types/Anomalies";

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;

export function StarterAWA({
anomalyid
}: Props) {
const imageUrl = `${supabaseUrl}/storage/v1/object/public/telescope/lidar-jovianVortexHunter/${anomalyid}.png`;
};

export function AWA() {
const supabase = useSupabaseClient();
const session = useSession();

const [anomaly, setAnomaly] = useState<Anomaly | null>(null);
const [imageUrl, setImageUrl] = useState<string | null>(null);

const [loading, setLoading] = useState(true);

useEffect(() => {
async function fetchAnomaly() {
if (!session) {
setLoading(false);
return;
};

try {
const {
data: anomalyData,
error: anomalyError
} = await supabase
.from("anomalies")
.select("*")
.eq("anomalySet", "telescope-awa");

if (anomalyError) {
throw anomalyError;
};

const randomAnomaly = anomalyData[Math.floor(Math.random() * anomalyData.length)];
setAnomaly(randomAnomaly);
setImageUrl(`${supabaseUrl}/storage/v1/object/public/telescope/telescope-awa/${randomAnomaly.id}.png`);
} catch (error: any) {
console.error("Error fetching anomaly", error.message);
setAnomaly(null);
} finally {
setLoading(false);
};
};

if (session) {
fetchAnomaly();
};
}, [session]);

if (loading) {
return (
<div>
<p>
Loading...
</p>
</div>
);
};

if (!anomaly) {
return (
<div>
<p>No Anomaly Found</p>
</div>
);
};

return (
<div className="flex flex-col items-start gap-4 pb-4 relativd w-full max-w-lg overflow-y-auto max-h-[90vh] rounded-lg">
.
</div>
);
};
4 changes: 4 additions & 0 deletions types/Anomalies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export interface Classification {
media: any | null;
classificationtype: string | null;
classificationConfiguration: Record<string, any> | null;
};

export interface Props {
anomalyid: number | bigint;
};

0 comments on commit 7164bf8

Please sign in to comment.