Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GrowBros
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomato
GrowBros
Commits
61ed0930
Commit
61ed0930
authored
1 year ago
by
Holzheu Hannah
Browse files
Options
Downloads
Patches
Plain Diff
introduced enums
parent
67a0b4dc
No related branches found
No related tags found
1 merge request
!28
Closes #40 : Custom useGrowbrosFetcher hook to make calls to the backend.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
growbros-frontend/src/utils/commonTypes.d.ts
+17
-5
17 additions, 5 deletions
growbros-frontend/src/utils/commonTypes.d.ts
growbros-frontend/src/utils/enums.ts
+15
-0
15 additions, 0 deletions
growbros-frontend/src/utils/enums.ts
with
32 additions
and
5 deletions
growbros-frontend/src/
type
s/commonTypes.d.ts
→
growbros-frontend/src/
util
s/commonTypes.d.ts
+
17
−
5
View file @
61ed0930
...
...
@@ -10,10 +10,10 @@ type plant = {
plantWeekEnd
:
number
;
harvestWeekStart
:
number
;
harvestWeekEnd
:
number
;
groundType
:
string
;
nutrientDemand
:
s
tri
ng
;
waterDemand
:
string
;
lightingDemand
:
string
;
groundType
:
GroundType
;
nutrientDemand
:
Nu
tri
entDemand
;
waterDemand
:
WaterDemand
;
lightingDemand
:
LightingDemand
;
imageUrl
:
string
;
};
...
...
@@ -27,4 +27,16 @@ type propsSliderFilter = {
topic
:
string
;
min
:
number
;
max
:
number
;
};
\ No newline at end of file
};
type
searchRequest
=
{
searchTerm
:
string
,
waterDemand
:
WaterDemand
,
nutrientDemand
:
NutrientDemand
,
groundType
:
GroundType
,
lightingDemand
:
LightingDemand
,
plantWeekStart
:
string
,
plantWeekEnd
:
string
,
growthDurationMin
:
number
,
growthDurationMax
:
number
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
growbros-frontend/src/utils/enums.ts
0 → 100644
+
15
−
0
View file @
61ed0930
enum
GroundType
{
}
enum
NutrientDemand
{
}
enum
WaterDemand
{
DRY
=
"
Trocken
"
,
WET
=
"
Feucht
"
,
VERY_WET
=
"
Sehr Feucht
"
}
enum
LightingDemand
{}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment