Commit Graph

94 Commits

Author SHA1 Message Date
Rene Saarsoo 30a5e3b42b Parsing of tags 2020-10-06 16:39:28 +03:00
Rene Saarsoo 77661ca6d7 Add tags field to Workout interface 2020-10-06 16:29:53 +03:00
Rene Saarsoo 919996dd09 Avoid instanceof RangeIntensity checks 2020-10-06 13:27:11 +03:00
Rene Saarsoo 98f10971b3 Avoid instanceof FreeIntensity operation 2020-10-06 13:22:08 +03:00
Rene Saarsoo 265ae5db1b Allow any interval type to be without power target 2020-10-06 13:19:35 +03:00
Rene Saarsoo 0d6f61913c Allow untitled workouts 2020-10-04 13:20:04 +03:00
Rene Saarsoo adebc3d460 Handle short workouts when calculating normalized intensity 2020-10-04 13:13:52 +03:00
Rene Saarsoo 77c6a721d4 Separate formatting of stats 2020-10-03 17:35:09 +03:00
Rene Saarsoo c1a435e4d0 Classify free intensity duration to separate zone 2020-10-03 17:15:47 +03:00
Rene Saarsoo c69a24c0e3 Tests for zoneDistribution 2020-10-03 17:05:53 +03:00
Rene Saarsoo 2be2c9254c Add freeride to zone types 2020-10-03 16:40:58 +03:00
Rene Saarsoo dcf851294d Rename tss2 to tss 2020-10-02 16:39:56 +03:00
Rene Saarsoo d274ea69a9 Delete old alternative TSS calculation system 2020-10-02 16:38:55 +03:00
Rene Saarsoo 72a02f2d19 Implement chunkRangeIntervals() utility 2020-10-02 13:38:17 +03:00
Rene Saarsoo e62359a553 Add maximumIntensity helper 2020-10-02 12:14:48 +03:00
Rene Saarsoo f20976b00b Export intensityToZoneIndex 2020-10-02 12:04:15 +03:00
Rene Saarsoo 53344b22ce Create interface to govern all Intensity classes 2020-10-02 11:59:54 +03:00
Rene Saarsoo 1df9f8e1d7 Move generic tests out of src/ dir 2020-10-02 11:38:11 +03:00
Rene Saarsoo 423012024b Create generic zone-index detection helper 2020-10-02 11:35:04 +03:00
Rene Saarsoo 14930e748e Export totalDuration() 2020-10-01 23:32:29 +03:00
Rene Saarsoo c9e71dc244 Export types 2020-10-01 22:41:04 +03:00
Rene Saarsoo bdba0ecc52 Change main index file to only perform export of functions 2020-10-01 20:32:23 +03:00
Rene Saarsoo 7f35a9a6b1 Add the missing <workout> tag :) 2020-10-01 20:04:21 +03:00
Rene Saarsoo ac126f36da Implement FreeRide intervals 2020-09-30 23:26:01 +03:00
Rene Saarsoo eef96cce92 Switch from # to @ as comment-start character 2020-09-30 22:30:19 +03:00
Rene Saarsoo 49638c6c71 Regression tests for stats and ZWO creation 2020-09-30 22:21:40 +03:00
Rene Saarsoo 819629094e Implement zone-distrubution stats 2020-09-30 20:50:08 +03:00
Rene Saarsoo 0511343f09 Use argparse for parsing command-line options 2020-09-30 15:03:33 +03:00
Rene Saarsoo 53e36cba0c Extract extractRepeatedInterval() helper 2020-09-26 12:57:26 +03:00
Rene Saarsoo 8339163fe5 Rename intervalsToIntensityNumbers to emphasize type of return value 2020-09-25 14:35:11 +03:00
Rene Saarsoo 212df4e748 Introduce Intensity & IntensityRange classes 2020-09-25 14:34:12 +03:00
Rene Saarsoo c516b80aff Rename Duration.value -> Duration.seconds 2020-09-25 13:51:01 +03:00
Rene Saarsoo 61ea726187 Rename Seconds to Duration 2020-09-25 13:50:03 +03:00
Rene Saarsoo 564faf95e7 Fix some basic bugs in ZWO generation 2020-09-25 12:21:25 +03:00
Rene Saarsoo 98f882f9b8 Integrate detectRepeats() with ZWO generation 2020-09-25 12:18:37 +03:00
Rene Saarsoo be5b9a5146 Implement Seconds.add() 2020-09-25 09:42:55 +03:00
Rene Saarsoo 6170796433 Rename types.js -> Seconds.ts 2020-09-25 09:33:37 +03:00
Rene Saarsoo 46b2c1198f Gather and offset comments in repeated intervals 2020-09-25 09:31:48 +03:00
Rene Saarsoo ba11117cc8 Additional tests 2020-09-24 22:36:50 +03:00
Rene Saarsoo 083f5ea3a5 Add type:repeat 2020-09-24 22:31:08 +03:00
Rene Saarsoo 9b47cfeb99 Add comments field to repeats 2020-09-24 22:30:11 +03:00
Rene Saarsoo 5c462d545f Detect repeated intervals: initial implementation 2020-09-24 16:57:08 +03:00
Rene Saarsoo ba88317fb9 Avoid the silly `i` abbreviation for interval 2020-09-24 13:52:13 +03:00
Rene Saarsoo 6ec87b6e5c Simplify inside-description check 2020-09-24 13:38:35 +03:00
Rene Saarsoo 01d49f45c3 Fix duration sum calculation 2020-09-24 11:13:49 +03:00
Rene Saarsoo 54392306bf Correct parsing of intervals after description 2020-09-24 11:04:02 +03:00
Rene Saarsoo c1eaae4b26 Discard empty lines at tokenizer level 2020-09-22 22:17:14 +03:00
Rene Saarsoo eb4d0a3735 Extract tokenizeText() 2020-09-22 22:03:54 +03:00
Rene Saarsoo 0a6bf2fba4 Split up main labelTokenizing routine 2020-09-22 22:01:30 +03:00
Rene Saarsoo 955c74be42 Split LabelToken to: HeaderToken & IntervalToken 2020-09-22 21:53:07 +03:00