Skip to content

Commit

Permalink
Refactor/whole project (#21)
Browse files Browse the repository at this point in the history
* feat: using interface instead of map for the keystrokes

* feat: add class for KeystrokeTimeSpans

* feat: add tests for keystroke timespan class

* feat: add keystroke repository and tests for it

* fix: keystroke repository is now a singleton and add test for this

* feat: format every file and use repository instead of weird interface manager

* fix: remove resetOneTimespanKeystrokesAmount()

* refactor: add pressedKeys in KeystrokeTimespan and group tests of this class (+ add tests for pressedKeys)

* feat: add addPressedKey() and addPressedKeyToAll() (+ tests for them)

* feat: add resetPressedKeys() and collect every pressed key the most pressed keys + reset them after time limit (+ add test for new method)

* feat: add getMostOftenPressedKeysInTotalWithCount() in the repository (+ add test for this method)

* refactor: add correct method for calculating the average wpm (+ add tests for the class)

* fix: message for pressed key analytics

* feat: add wpmStatusBar and rearrange the code in the extension.ts file (+ add test for new class)

* feat: add keystroke count status bar and refactor extension.ts for cleaner method calling

* refactor: put vscode_utils and utils in one single file

* refactor: remove explicit count member in keystroke time span (now using pressedKey-map directly)

* test: add test for map initializer in keystroketimespan

* refactor: add messages functions in the correct file + add tests for them

* wip

* feat: add support for special key characters like (enter, backspace, etc.) + add tests for these cases

* fix PR comments #1
  • Loading branch information
MhouneyLH authored Jan 6, 2024
1 parent a98da03 commit 471b6dd
Show file tree
Hide file tree
Showing 27 changed files with 1,880 additions and 639 deletions.
4 changes: 1 addition & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
"recommendations": ["esbenp.prettier-vscode"]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
"typescript.tsc.autoDetect": "off",
"nuxt.isNuxtApp": false
}
Loading

0 comments on commit 471b6dd

Please sign in to comment.