Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/GlobalStates/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/components/LandingHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { useEffect, useMemo } from 'react';
import { PlotArea, Plot, LandingShapes } from '@/components/plots';
import { MainPanel } from '@/components/ui';
import { Loading, Navbar, Error as ErrorComponent } from '@/components/ui';
import { useGlobalStore, useZarrStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useShallow } from 'zustand/shallow';

async function sendPing() {
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/AnalysisInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use client';
import React, {useEffect, useMemo} from 'react'
import './Plots.css'
import { useAnalysisStore, useGlobalStore } from '@/GlobalStates'
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useShallow } from 'zustand/shallow'
import { parseLoc } from '@/utils/HelperFuncs'

Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/AnalysisWG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { ArrayMinMax, GetCurrentArray } from '@/utils/HelperFuncs';
import * as THREE from 'three';
import React, { useEffect, useRef } from 'react';
import { DataReduction, Convolve, Multivariate2D, Multivariate3D, CUMSUM3D, Convolve2D, CustomShader } from '../computation/webGPU';
import { useGlobalStore, useAnalysisStore, usePlotStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow';
import { GetArray } from '../zarr/ZarrLoaderLRU';
import { CreateTexture } from '../textures';
Expand Down
6 changes: 5 additions & 1 deletion src/components/plots/AxisLines.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
"use client";

import { useAnalysisStore, useGlobalStore, useImageExportStore, usePlotStore, useZarrStore } from '@/GlobalStates'
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
Comment on lines +3 to +7

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and consistency, it's a good practice to keep imports sorted alphabetically. This applies to the new import statements for the stores. This suggestion applies to other files in this pull request as well where multiple stores are being imported.

Suggested change
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
References
  1. Imports should be sorted alphabetically to improve readability and maintainability. This is a common convention enforced by tools like ESLint's sort-imports rule. (link)

import React, {useState, useMemo} from 'react'
import { useShallow } from 'zustand/shallow'
import { Text } from '@react-three/drei'
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/CountryBorders.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client";
import React, {useEffect, useState, useMemo} from 'react'
import { useAnalysisStore, useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import * as THREE from 'three'
import { useShallow } from 'zustand/shallow';
import { useFrame } from '@react-three/fiber';
Expand Down
3 changes: 2 additions & 1 deletion src/components/plots/DataCube.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useEffect, useMemo, useRef } from 'react'
import * as THREE from 'three'
import { vertexShader, fragmentShader, fragOpt, orthoVertex } from '@/components/textures/shaders';
import { useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow';
import { invalidate, useFrame } from '@react-three/fiber';
import { deg2rad } from '@/utils/HelperFuncs';
Expand Down
5 changes: 4 additions & 1 deletion src/components/plots/FlatBlocks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import React, { useEffect, useMemo } from 'react'
import { useAnalysisStore, useErrorStore, useGlobalStore, usePlotStore } from '@/GlobalStates'
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useErrorStore } from '@/GlobalStates/ErrorStore';
import { useShallow } from 'zustand/shallow'
import * as THREE from 'three'
import { sphereBlocksFrag, flatBlocksVert, flatBlocksVert3D } from '../textures/shaders'
Expand Down
5 changes: 4 additions & 1 deletion src/components/plots/FlatMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import React, {useMemo, useEffect, useRef, useState} from 'react'
import * as THREE from 'three'
import { useAnalysisStore, useGlobalStore, usePlotStore, useZarrStore } from '@/GlobalStates'
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { vertShader } from '@/components/computation/shaders'
import { flatFrag3D, fragmentFlat } from '../textures/shaders';
import { useShallow } from 'zustand/shallow'
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/KeyFramePreviewer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import { useGlobalStore, useImageExportStore, usePlotStore } from '@/GlobalStates'
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { invalidate, useThree } from '@react-three/fiber';
import React, { useEffect, useMemo, useRef } from 'react'
import { useShallow } from 'zustand/shallow'
Expand Down
3 changes: 2 additions & 1 deletion src/components/plots/MorphingPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import gsap from 'gsap';
import vertexShader from '@/components/textures/shaders/LandingVertex.glsl'
import fragmentShader from '@/components/textures/shaders/LandingFrag.glsl'
import './Plots.css';
import { useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow';


Expand Down
5 changes: 4 additions & 1 deletion src/components/plots/Plot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import * as THREE from 'three';
import { PointCloud, UVCube, DataCube, FlatMap, Sphere, CountryBorders, AxisLines, SphereBlocks, FlatBlocks, KeyFramePreviewer } from '@/components/plots';
import { Canvas, invalidate, useThree, useLoader } from '@react-three/fiber';
import { CreateTexture } from '@/components/textures';
import { useAnalysisStore, useGlobalStore, useImageExportStore, usePlotStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
import { useShallow } from 'zustand/shallow';
import { Navbar, Colorbar, ExportExtent, ShaderEditor, KeyFrames } from '../ui';
import AnalysisInfo from './AnalysisInfo';
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/PointCloud.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import * as THREE from 'three'
import { useEffect, useMemo, useState, useRef } from 'react'
import { pointFrag, pointVert } from '@/components/textures/shaders'
import { useAnalysisStore, useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow';
import { parseUVCoords, getUnitAxis, GetTimeSeries, GetCurrentArray, deg2rad } from '@/utils/HelperFuncs';
import { evaluate_cmap } from 'js-colormaps-es';
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/Sphere.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React, {useRef, useMemo, useState, useEffect} from 'react'
import * as THREE from 'three'
import { useAnalysisStore, useGlobalStore, usePlotStore } from '@/GlobalStates'
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow'
import { sphereVertex, sphereVertexFlat, sphereFrag, flatSphereFrag } from '../textures/shaders'
import { parseUVCoords, GetTimeSeries, GetCurrentArray, deg2rad } from '@/utils/HelperFuncs';
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/SphereBlocks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useEffect, useMemo } from 'react'
import { useErrorStore, useGlobalStore, usePlotStore } from '@/GlobalStates'
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useErrorStore } from '@/GlobalStates/ErrorStore';
import { useShallow } from 'zustand/shallow'
import * as THREE from 'three'
import { sphereBlocksVert, sphereBlocksVertFlat, sphereBlocksFrag } from '../textures/shaders'
Expand Down
4 changes: 3 additions & 1 deletion src/components/plots/UVCube.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import * as THREE from 'three'
import { useMemo, useState, useEffect, useRef } from 'react';
import { parseUVCoords, getUnitAxis, GetTimeSeries, GetCurrentArray } from '@/utils/HelperFuncs';
import { useAnalysisStore, useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow';
import { evaluate_cmap } from 'js-colormaps-es';

Expand Down
3 changes: 2 additions & 1 deletion src/components/plots/plotarea/FixedTicks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { useThree, useFrame } from '@react-three/fiber'
import { useState, useMemo, useEffect, useRef } from 'react'
import { parseTimeUnit } from '@/utils/HelperFuncs'
import { Fragment } from 'react'
import { useGlobalStore, usePlotStore } from '@/GlobalStates'
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow'


Expand Down
2 changes: 1 addition & 1 deletion src/components/plots/plotarea/LinePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FixedTicks, ThickLine } from '@/components/plots'
import { RefObject, useEffect, useRef, useState } from 'react'
import { ResizeBar, YScaler, XScaler, ShowLinePlot } from '@/components/ui'
import './LinePlot.css'
import { useGlobalStore } from '@/GlobalStates'
import { useGlobalStore } from '@/GlobalStates/GlobalStore'
import { useShallow } from 'zustand/shallow'
import PlotLineOptions from '@/components/ui/LinePlotArea/PlotLineOptions'
import { IoCloseCircleSharp } from "react-icons/io5";
Expand Down
3 changes: 2 additions & 1 deletion src/components/plots/plotarea/PlotPoints.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, {useRef, useMemo, useEffect, useState} from 'react'
import * as THREE from 'three'
import { useFrame } from '@react-three/fiber'
import { useGlobalStore, usePlotStore } from '@/GlobalStates'
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow'

interface pointSetters{
Expand Down
3 changes: 2 additions & 1 deletion src/components/plots/plotarea/ThickLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import React, {useEffect, useMemo, useRef, useState} from 'react'
import * as THREE from 'three'
import { usePlotStore, useGlobalStore } from '@/GlobalStates'
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow'
import vertexShader from '@/components/textures/shaders/thickLineVert.glsl'
import { PlotPoints } from './PlotPoints';
Expand Down
2 changes: 1 addition & 1 deletion src/components/textures/TextureMakers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//This File will have functions converting the array information into 2D or 3D textures that we will pass to the corresponding 2D or 3D object
import * as THREE from 'three'
import { ArrayMinMax, TypedArray, TypedArrayBufferLike } from '@/utils/HelperFuncs';
import { useGlobalStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';

interface Array {
data: TypedArray | TypedArrayBufferLike;
Expand Down
4 changes: 3 additions & 1 deletion src/components/ui/Colorbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import { RxReset } from "react-icons/rx";
import { FaPlus, FaMinus } from "react-icons/fa";
import React, {useRef, useEffect, useMemo, useState} from 'react'
import { useGlobalStore, usePlotStore, useAnalysisStore } from '@/GlobalStates'
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow'
import './css/Colorbar.css'
import { linspace } from '@/utils/HelperFuncs';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Elements/AxisBars.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import "../css/AxisBars.css"
import { usePlotStore } from '@/GlobalStates'
import { usePlotStore } from '@/GlobalStates/PlotStore'
import { useShallow } from 'zustand/shallow'
import * as THREE from 'three'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Elements/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import '../css/Error.css'
import { useErrorStore } from '@/GlobalStates'
import { useErrorStore } from '@/GlobalStates/ErrorStore'
import { ErrorList } from './ErrorList'
import { useShallow } from 'zustand/shallow'
import { Button } from '@/components/ui'
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Elements/Loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useGlobalStore } from "@/GlobalStates"
import { useGlobalStore } from "@/GlobalStates/GlobalStore"
import '../css/Loading.css'
import { useShallow } from "zustand/shallow"

Expand Down
4 changes: 3 additions & 1 deletion src/components/ui/ExportExtent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { useGlobalStore, useImageExportStore } from '@/GlobalStates'
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';

import React from 'react'
import { useShallow } from 'zustand/shallow'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Image from "next/image";
import { logoBGC_MPI, logoBGC, logoMPI } from "@/assets/index";

import './css/Footer.css';
import { useImageExportStore } from "@/GlobalStates";
import { useImageExportStore } from "@/GlobalStates/ImageExportStore";
import { useShallow } from "zustand/shallow";

const Footer = () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/KeyFrames.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import React, {useEffect, useRef, useState } from 'react'
import { Button } from './button'
import { ButtonGroup } from "@/components/ui/button-group"
import { useImageExportStore, usePlotStore } from '@/GlobalStates'
import { useImageExportStore } from '@/GlobalStates/ImageExportStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow'
import { Slider } from './slider'
import './css/KeyFrames.css'
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/LinePlotArea/PlotLineOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
import { usePlotStore } from '@/GlobalStates'
import { usePlotStore } from '@/GlobalStates/PlotStore'
import { useShallow } from 'zustand/shallow'
import { Slider } from "@/components/ui/slider"

Expand Down
4 changes: 3 additions & 1 deletion src/components/ui/MainPanel/AdjustPlot.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client";
import React, {useState, useEffect} from 'react'
import { useAnalysisStore, useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import '../css/MainPanel.css'
import { useShallow } from 'zustand/shallow';
import { SliderThumbs } from '@/components/ui/Widgets/SliderThumbs';
Expand Down
4 changes: 3 additions & 1 deletion src/components/ui/MainPanel/AnalysisOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
'use client';

import React, { useEffect, useState, useRef } from 'react';
import { useAnalysisStore, useGlobalStore, useZarrStore } from '@/GlobalStates';
import { useAnalysisStore } from '@/GlobalStates/AnalysisStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useShallow } from 'zustand/shallow';
import '../css/MainPanel.css';
import { PiMathOperationsBold } from "react-icons/pi";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/MainPanel/Colormaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, {useEffect, useState} from 'react'
import { GetColorMapTexture } from '@/components/textures';
import { useGlobalStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { colormaps } from '@/components/textures';
import { useShallow } from 'zustand/shallow';
import { MdOutlineSwapVert } from "react-icons/md";
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/MainPanel/Dataset.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"use client";

import React, { SetStateAction, useEffect, useState, ReactNode } from 'react';
import { useGlobalStore, useZarrStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useShallow } from 'zustand/shallow';
import { Input } from '../input';
import { Button } from '../button';
Expand Down
5 changes: 3 additions & 2 deletions src/components/ui/MainPanel/LocalNetCDF.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"use client";
import React, {ChangeEvent, useState} from 'react'
import { Input } from '../input'
import { useGlobalStore, useZarrStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { NetCDF4 } from '@earthyscience/netcdf4-wasm';
import {
Alert,
Expand Down Expand Up @@ -45,7 +46,7 @@ const LocalNetCDF = ({ setOpenVariables}:LocalNCType) => {
data.getFullMetadata()
])
useGlobalStore.setState({variables: Object.keys(variables), zMeta: metadata, initStore:`local_${file.name}`})
useZarrStore.setState({ fetchNC:true, useNC: true, ncModule: data})
useZarrStore.setState({ useNC: true, ncModule: data})
const titleDescription = {
title: attrs.title?? file.name,
description: attrs.history?? ''
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/MainPanel/LocalZarr.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"use client";
import React, {useState, useEffect, ChangeEvent} from 'react'
import * as zarr from 'zarrita'
import { useZarrStore, useGlobalStore } from '@/GlobalStates';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { Input } from '../input';
import ZarrParser from '@/components/zarr/ZarrParser';

Expand Down
5 changes: 4 additions & 1 deletion src/components/ui/MainPanel/MetaDataInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import React, { useState, useMemo, useEffect } from "react"
import { useCacheStore, useGlobalStore, usePlotStore, useZarrStore } from '@/GlobalStates'
import { useCacheStore } from "@/GlobalStates/CacheStore";
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import { useShallow } from 'zustand/shallow'
import { SliderThumbs } from "@/components/ui/Widgets/SliderThumbs"
import Metadata, { defaultAttributes, renderAttributes } from "@/components/ui/MetaData"
Expand Down
5 changes: 4 additions & 1 deletion src/components/ui/MainPanel/PlayButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"use client";
import { useCacheStore, useGlobalStore, usePlotStore, useZarrStore } from '@/GlobalStates'
import { useCacheStore } from '@/GlobalStates/CacheStore';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useZarrStore } from '@/GlobalStates/ZarrStore';
import {useEffect, useMemo, useState, useRef} from 'react'
import { useShallow } from 'zustand/shallow'
import '../css/MainPanel.css'
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/MainPanel/PlotType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import React, { useEffect, useMemo, useState } from 'react'
import '../css/MainPanel.css'
import { useGlobalStore, usePlotStore } from '@/GlobalStates';
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { usePlotStore } from '@/GlobalStates/PlotStore';
import { useShallow } from 'zustand/shallow';
import { PiSphereThin } from "react-icons/pi";
import { CgMenuGridO } from "react-icons/cg";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/MainPanel/Variables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useState, useEffect, useMemo } from "react";
import { TbVariable } from "react-icons/tb";
import { useGlobalStore, useZarrStore } from "@/GlobalStates";
import { useGlobalStore } from '@/GlobalStates/GlobalStore';
import { useShallow } from "zustand/shallow";
import { Separator } from "@/components/ui/separator";
import MetaDataInfo from "./MetaDataInfo";
Expand Down
Loading
Loading