-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathpattern-presets.ts
More file actions
58 lines (57 loc) · 2.01 KB
/
Copy pathpattern-presets.ts
File metadata and controls
58 lines (57 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import ms from "ms";
import { PatternPreset } from "@breathly/types/pattern-preset";
// Sorted by display name. The `id` of a preset is persisted in the settings store and
// validated by `normalizePersistedSettingsState`, so ids must never change: an id that
// no longer matches silently resets that user to the Square pattern.
//
// Typed as a non-empty tuple, so the first entry can serve as a total fallback without an
// assertion.
export const patternPresets: [PatternPreset, ...PatternPreset[]] = [
{
id: "deep-calm",
name: "4-7-8 Deep Calm",
steps: [ms("4s"), ms("7s"), ms("8s"), 0],
description: "A natural tranquilizer for the nervous system. Do it at least twice a day.",
},
{
id: "awake",
name: "Awake",
steps: [ms("6s"), 0, ms("2s"), 0],
description:
"Use this technique first thing in the morning for quick burst of energy and alertness.",
},
{
id: "coherent",
name: "Coherent",
steps: [ms("5.5s"), 0, ms("5.5s"), 0],
description:
"Equal inhales and exhales at about five and a half breaths per minute. This pace brings the heart rate and the breath into step.",
},
{
id: "extended-exhale",
name: "Extended Exhale",
steps: [ms("4s"), 0, ms("6s"), 0],
description:
"The exhale lasts longer than the inhale, which is the simplest way to settle. Use it when you have only a minute.",
},
{
id: "pranayama",
name: "Pranayama",
steps: [ms("7s"), ms("4s"), ms("8s"), ms("4s")],
description: "A main component of yoga, an exercise for physical and mental wellness.",
},
{
id: "square",
name: "Square",
steps: [ms("4s"), ms("4s"), ms("4s"), ms("4s")],
description:
"Box breathing, also referred to as square breathing, can help you slow down your breathing and reduce stress.",
},
{
id: "ujjayi",
name: "Ujjayi",
steps: [ms("7s"), 0, ms("7s"), 0],
description:
"Balance influence on the cardiorespiratory system, release feelings of irritation, and calm the mind and body.",
},
];