Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
7864ebfc
Commit
7864ebfc
authored
5 years ago
by
emelko
Browse files
Options
Downloads
Patches
Plain Diff
Adds subcategories of cevix and mucus as labels
parent
442bcc5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/cycle-day/cycle-day-overview.js
+2
-2
2 additions, 2 deletions
components/cycle-day/cycle-day-overview.js
i18n/en/cycle-day.js
+9
-0
9 additions, 0 deletions
i18n/en/cycle-day.js
with
11 additions
and
2 deletions
components/cycle-day/cycle-day-overview.js
+
2
−
2
View file @
7864ebfc
...
...
@@ -70,7 +70,7 @@ export default class CycleDayOverView extends Component {
mucus
:
mucus
=>
{
const
filledCategories
=
[
'
feeling
'
,
'
texture
'
].
filter
(
c
=>
isNumber
(
mucus
[
c
]))
let
label
=
filledCategories
.
map
(
category
=>
{
return
category
+
'
:
'
+
labels
.
mucus
[
category
].
categories
[
mucus
[
category
]]
return
labels
.
mucus
.
subcategories
[
category
]
+
'
:
'
+
labels
.
mucus
[
category
].
categories
[
mucus
[
category
]]
}).
join
(
'
,
'
)
if
(
isNumber
(
mucus
.
value
))
label
+=
`\n =>
${
labels
.
mucusNFP
[
mucus
.
value
]}
`
...
...
@@ -81,7 +81,7 @@ export default class CycleDayOverView extends Component {
cervix
:
cervix
=>
{
const
filledCategories
=
[
'
opening
'
,
'
firmness
'
,
'
position
'
].
filter
(
c
=>
isNumber
(
cervix
[
c
]))
let
label
=
filledCategories
.
map
(
category
=>
{
return
category
+
'
:
'
+
labels
.
cervix
[
category
].
categories
[
cervix
[
category
]]
return
labels
.
cervix
.
subcategories
[
category
]
+
'
:
'
+
labels
.
cervix
[
category
].
categories
[
cervix
[
category
]]
}).
join
(
'
,
'
)
if
(
cervix
.
exclude
)
label
=
`(
${
label
}
)`
...
...
This diff is collapsed.
Click to expand it.
i18n/en/cycle-day.js
+
9
−
0
View file @
7864ebfc
...
...
@@ -14,6 +14,11 @@ export const bleeding = {
}
export
const
cervix
=
{
subcategories
:
{
opening
:
'
opening
'
,
firmness
:
'
firmness
'
,
position
:
'
position
'
},
opening
:
{
categories
:
[
'
closed
'
,
'
medium
'
,
'
open
'
],
explainer
:
'
Is your cervix open or closed?
'
...
...
@@ -30,6 +35,10 @@ export const cervix = {
}
export
const
mucus
=
{
subcategories
:
{
feeling
:
'
feeling
'
,
texture
:
'
texture
'
},
feeling
:
{
categories
:
[
'
dry
'
,
'
nothing
'
,
'
wet
'
,
'
slippery
'
],
explainer
:
'
What does your vaginal entrance feel like?
'
...
...
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