Skip to content

Commit

Permalink
Merge pull request #1 from jhnnsrs/with_next
Browse files Browse the repository at this point in the history
Added modular system
  • Loading branch information
jhnnsrs authored Aug 23, 2023
2 parents 0db1bb6 + 06e81ef commit 131692d
Show file tree
Hide file tree
Showing 455 changed files with 64,497 additions and 5,033 deletions.
76 changes: 76 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;

--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;

--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;

--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;

--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;

--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;

--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;

--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;

--radius: 0.5rem;
}

.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;

--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;

--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;

--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;

--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;

--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;

--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;

--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
16 changes: 16 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": " src/index.css",
"baseColor": "zinc",
"cssVariables": true
},
"aliases": {
"components": "src/universal/components",
"utils": "src/lib/utils"
}
}
4 changes: 4 additions & 0 deletions graphql/mikro_next/fragments/antibody.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fragment Antibody on Antibody {
name
epitope
}
10 changes: 10 additions & 0 deletions graphql/mikro_next/fragments/camera.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fragment Camera on Camera {
sensorSizeX
sensorSizeY
pixelSizeX
pixelSizeY

name
serialNumber

}
5 changes: 5 additions & 0 deletions graphql/mikro_next/fragments/channel.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment Channel on Channel {
id
name
excitationWavelength
}
18 changes: 18 additions & 0 deletions graphql/mikro_next/fragments/credentials.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fragment Credentials on Credentials {
accessKey
status
secretKey
bucket
key
sessionToken
store
}

fragment AccessCredentials on AccessCredentials {
accessKey
secretKey
bucket
key
sessionToken
path
}
31 changes: 31 additions & 0 deletions graphql/mikro_next/fragments/dataset.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
fragment Dataset on Dataset {
id
name
description
history {
...History
}
images {
...ListImage
}
files {
...ListFile
}
children {
...ListDataset
}
isDefault
pinned
createdAt
creator {
sub
}
tags
}

fragment ListDataset on Dataset {
id
name
description
isDefault
}
5 changes: 5 additions & 0 deletions graphql/mikro_next/fragments/era.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment Era on Era {
id
begin
name
}
15 changes: 15 additions & 0 deletions graphql/mikro_next/fragments/file.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
fragment File on File {
origins {
id
}
id
name
store {
...BigFileStore
}
}

fragment ListFile on File {
id
name
}
5 changes: 5 additions & 0 deletions graphql/mikro_next/fragments/fluorophore.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment Fluorophore on Fluorophore {
name
emissionWavelength
excitationWavelength
}
6 changes: 6 additions & 0 deletions graphql/mikro_next/fragments/history.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fragment History on History {
id
during
kind
date
}
55 changes: 55 additions & 0 deletions graphql/mikro_next/fragments/image.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
fragment Image on Image {
origins {
id
}
id
name
store {
...ZarrStore
}
views {
...ChannelView
...TransformationView
...LabelView
...TimepointView
...OpticsView
}
pinned
renders {
...Snapshot
...Video
}
dataset {
name
id
}
createdAt
history(pagination: { limit: 3 }) {
...History
}
creator {
sub
}
tags
metrics {
...ImageMetric
}
roiOrigins {
...ListROI
}
fileOrigins {
...ListFile
}
}

fragment ListImage on Image {
latestSnapshot {
id
store {
key
presignedUrl
}
}
id
name
}
6 changes: 6 additions & 0 deletions graphql/mikro_next/fragments/instrument.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fragment Instrument on Instrument {
model
name
serialNumber

}
8 changes: 8 additions & 0 deletions graphql/mikro_next/fragments/metric.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fragment ImageIntMetric on ImageIntMetric {
id
value
}

fragment ImageMetric on ImageMetric {
...ImageIntMetric
}
6 changes: 6 additions & 0 deletions graphql/mikro_next/fragments/objective.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fragment Objective on Objective {
na
name
serialNumber

}
7 changes: 7 additions & 0 deletions graphql/mikro_next/fragments/roi.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fragment ListROI on ROI {
id
image {
id
name
}
}
7 changes: 7 additions & 0 deletions graphql/mikro_next/fragments/snapshot.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fragment Snapshot on Snapshot {
id
store {
key
presignedUrl
}
}
13 changes: 13 additions & 0 deletions graphql/mikro_next/fragments/stage.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
fragment Stage on Stage {
id
views {
...TransformationView
}
pinned
name
}

fragment ListStage on Stage {
id
name
}
22 changes: 22 additions & 0 deletions graphql/mikro_next/fragments/store.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
fragment ZarrStore on ZarrStore {
id
key
bucket
path
shape
dtype
}

fragment ParquetStore on ParquetStore {
id
key
bucket
path
}

fragment BigFileStore on BigFileStore {
id
key
bucket
path
}
10 changes: 10 additions & 0 deletions graphql/mikro_next/fragments/table.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fragment Table on Table {
origins {
id
}
id
name
store {
...ParquetStore
}
}
7 changes: 7 additions & 0 deletions graphql/mikro_next/fragments/video.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fragment Video on Video {
id
store {
key
presignedUrl
}
}
Loading

0 comments on commit 131692d

Please sign in to comment.