-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
927 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Build Frontend | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21.7 | ||
- name: Install dependencies | ||
working-directory: applications/visualizer/frontend | ||
run: yarn install --frozen-lockfile | ||
- name: Build App | ||
working-directory: applications/visualizer/frontend | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
components: | ||
schemas: | ||
Dataset: | ||
properties: | ||
axes: | ||
anyOf: | ||
- type: object | ||
- type: 'null' | ||
title: Axes | ||
collection: | ||
maxLength: 20 | ||
title: Collection | ||
type: string | ||
description: | ||
title: Description | ||
type: string | ||
id: | ||
title: Id | ||
type: string | ||
name: | ||
maxLength: 50 | ||
title: Name | ||
type: string | ||
time: | ||
title: Time | ||
type: number | ||
type: | ||
maxLength: 50 | ||
title: Type | ||
type: string | ||
visualTime: | ||
title: Visual Time | ||
type: number | ||
required: | ||
- id | ||
- collection | ||
- name | ||
- description | ||
- time | ||
- visualTime | ||
- type | ||
title: Dataset | ||
type: object | ||
ErrorMessage: | ||
properties: | ||
detail: | ||
title: Detail | ||
type: string | ||
required: | ||
- detail | ||
title: ErrorMessage | ||
type: object | ||
Input: | ||
properties: | ||
page: | ||
default: 1 | ||
minimum: 1 | ||
title: Page | ||
type: integer | ||
title: Input | ||
type: object | ||
Neuron: | ||
properties: | ||
embryonic: | ||
default: false | ||
title: Embryonic | ||
type: boolean | ||
inhead: | ||
default: false | ||
title: Inhead | ||
type: boolean | ||
intail: | ||
default: false | ||
title: Intail | ||
type: boolean | ||
name: | ||
title: Name | ||
type: string | ||
nclass: | ||
maxLength: 30 | ||
title: Nclass | ||
type: string | ||
neurotransmitter: | ||
maxLength: 10 | ||
title: Neurotransmitter | ||
type: string | ||
type: | ||
maxLength: 10 | ||
title: Type | ||
type: string | ||
required: | ||
- name | ||
- nclass | ||
- neurotransmitter | ||
- type | ||
title: Neuron | ||
type: object | ||
PagedNeuron: | ||
properties: | ||
count: | ||
title: Count | ||
type: integer | ||
items: | ||
items: | ||
$ref: '#/components/schemas/Neuron' | ||
title: Items | ||
type: array | ||
required: | ||
- items | ||
- count | ||
title: PagedNeuron | ||
type: object | ||
info: | ||
description: '' | ||
title: C. Elegans Visualizer | ||
version: 1.0.0 | ||
openapi: 3.1.0 | ||
paths: | ||
/api/cells: | ||
get: | ||
description: Returns all the cells (neurons) from the DB | ||
operationId: get_all_cells | ||
parameters: | ||
- in: query | ||
name: page | ||
required: false | ||
schema: | ||
default: 1 | ||
minimum: 1 | ||
title: Page | ||
type: integer | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/PagedNeuron' | ||
description: OK | ||
summary: Get All Cells | ||
tags: | ||
- neurons | ||
/api/datasets: | ||
get: | ||
description: Returns all the datasets from the DB | ||
operationId: get_all_datasets | ||
parameters: [] | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
items: | ||
$ref: '#/components/schemas/Dataset' | ||
title: Response | ||
type: array | ||
description: OK | ||
summary: Get All Datasets | ||
tags: | ||
- datasets | ||
/api/datasets/{dataset}: | ||
get: | ||
description: Returns a specific dataset | ||
operationId: get_dataset | ||
parameters: | ||
- in: path | ||
name: dataset | ||
required: true | ||
schema: | ||
title: Dataset | ||
type: string | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Dataset' | ||
description: OK | ||
'404': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorMessage' | ||
description: Not Found | ||
summary: Get Dataset | ||
tags: | ||
- datasets | ||
/api/datasets/{dataset}/neurons: | ||
get: | ||
description: Returns all the neurons of a dedicated dataset | ||
operationId: get_dataset_neurons | ||
parameters: | ||
- in: path | ||
name: dataset | ||
required: true | ||
schema: | ||
title: Dataset | ||
type: string | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
items: | ||
$ref: '#/components/schemas/Neuron' | ||
title: Response | ||
type: array | ||
description: OK | ||
'404': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorMessage' | ||
description: Not Found | ||
summary: Get Dataset Neurons | ||
tags: | ||
- datasets | ||
/api/live: | ||
get: | ||
description: Test if application is healthy | ||
operationId: live | ||
parameters: [] | ||
responses: | ||
'200': | ||
description: OK | ||
summary: Live | ||
tags: | ||
- healthcheck | ||
/api/ping: | ||
get: | ||
description: test the application is up | ||
operationId: ping | ||
parameters: [] | ||
responses: | ||
'200': | ||
description: OK | ||
summary: Ping | ||
tags: | ||
- healthcheck | ||
/api/ready: | ||
get: | ||
description: Test if application is ready to take requests | ||
operationId: ready | ||
parameters: [] | ||
responses: | ||
'200': | ||
description: OK | ||
summary: Ready | ||
tags: | ||
- healthcheck | ||
servers: [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare module '*.svg' { | ||
import React = require('react'); | ||
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>; | ||
const src: string; | ||
export default src; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.