Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
1e5cba4
[us40] Improve the layout to have the buttons above and to make the c…
Musholic Nov 23, 2023
ddf6653
[us40] Add a 'rules' page
Musholic Nov 23, 2023
2d46c83
[us40] Fix padding on login page
Musholic Nov 23, 2023
ca10055
[us40] Add a go back button to the rules page
Musholic Nov 23, 2023
a4b4f19
[us40] Add two hardcoded rules to show
Musholic Nov 23, 2023
ced0a1e
[us40] Fix failing test in FileListComponent due to missing fixture.d…
Musholic Nov 23, 2023
000ae75
[us40] Add a Run all rules button on rules page
Musholic Nov 23, 2023
dd07791
[us40] Implement runAll to automatically categorize a file
Musholic Nov 24, 2023
5d0e863
[us40] RuleService.runAll: don't categorize a file which is already i…
Musholic Nov 24, 2023
5a51a43
[us40] Add form to create a new rule
Musholic Nov 30, 2023
fb32a33
[us40] Persist rules on creation
Musholic Nov 30, 2023
336b75a
[us40] List persisted rules instead of hardcoded ones
Musholic Nov 30, 2023
1a672e9
[us40] Refresh list after new rule creation
Musholic Nov 30, 2023
57b1c85
[us40] Add delete button to delete the existing rules
Musholic Nov 30, 2023
9cad7c6
[us40] Backup the database after creation or deletion of rules
Musholic Nov 30, 2023
b5ca98c
[us40] Overwrite the existing db backup instead of creating a new db …
Musholic Nov 30, 2023
818a34a
[us40] Fix failing test in FileUploadComponent because of mocking aft…
Musholic Nov 30, 2023
cce3abb
[us40] Fix missing import of dexie
Musholic Nov 30, 2023
8647909
[us40] Implement db restore functionality
Musholic Dec 1, 2023
fee051c
[us40] Show database backup progress in a snackbar
Musholic Dec 1, 2023
0bfd1db
[us40] Fix tests failing due to mocking BreakpointObserver (a depende…
Musholic Dec 1, 2023
1f989da
[us40] Show finished message in snackbar and dismiss message automati…
Musholic Dec 7, 2023
01f124d
[us40] Remove unneeded TODO about moving showProgress to a pipe function
Musholic Dec 7, 2023
2c1d890
[us40] Show progress when restoring backup (missing http event progre…
Musholic Dec 7, 2023
3a0bcef
[us40] Support showing http event progress report
Musholic Dec 7, 2023
b0e3004
[us40] Pre-load once files list on page load to avoid multiple api ca…
Musholic Dec 22, 2023
51b9ecb
[us40] After upload, refresh page with new refresh method
Musholic Jan 9, 2024
dcca98f
[us40] RuleService: use cache for fileService.findAll
Musholic Jan 10, 2024
f68ef25
[us40] DatabaseBackupAndRestoreService: use cache for fileService.fin…
Musholic Jan 11, 2024
e24e57d
[us40] FileUploadService: use cache instead of baseFolderService.find…
Musholic Jan 11, 2024
cabc886
[us40] RuleService: use cache instead of baseFolderService.findOrCrea…
Musholic Jan 11, 2024
d991040
[us40] Fix baseFolderService not used anywhere but in resolver causin…
Musholic Jan 11, 2024
35c6e72
[us40] Add missing tests for FilesCacheService.get*
Musholic Jan 11, 2024
be82696
[us40] Automatic restore when logged in + Fix progress display of bac…
Musholic Jan 11, 2024
ef04c3e
[us40] Restore database even if there is conflicting data
Musholic Jan 12, 2024
708c33b
[us40] Do not restore the database if it is already up-to-date
Musholic Jan 12, 2024
19b6985
[us40] Support for including file content in rules
Musholic Jan 18, 2024
e0dd04d
[us40] Fix steps indexes (of showProgress) when running rules
Musholic Jan 18, 2024
36a2f96
[us40] Download file content only for simple text file when running r…
Musholic Jan 18, 2024
6bf9def
[us40] Fix UI update and message orders while using web worker for as…
Musholic Jan 19, 2024
d69fd7b
[us40] Update all dependencies since this may solve an incompatibilit…
Musholic Jan 25, 2024
1de7ba5
[us40] Support for reading pdf file content when running rules
Musholic Jan 25, 2024
51b87d5
[us40] Support for rule modification
Musholic Jan 25, 2024
541d28c
[us40] Run all rules automatically after adding a new rule, a new fil…
Musholic Jan 26, 2024
8152a4c
[us40] Remove now unneeded runAll button on rules page
Musholic Jan 26, 2024
02795f5
[us40] Do not display any toast message (quick dismiss) if there were…
Musholic Jan 26, 2024
4523230
[us40] Delay backup calls after rule update to avoid doing too many b…
Musholic Jan 26, 2024
04b72b0
[us40] Immediately reload the page and run all rules after a rule CUD
Musholic Jan 26, 2024
35ee482
[us40] Remove already implemented TODO in ruleService
Musholic Jan 26, 2024
4973288
[us40] Use ace editor when editing the script
Musholic Feb 1, 2024
762bdce
[us40] Use ace editor when displaying any script in the list of rules
Musholic Feb 1, 2024
839b38b
[us40] Add custom auto-completion to ace editor
Musholic Feb 2, 2024
94977a4
[us40] Disable updating the category when it was automatically assigned
Musholic Feb 2, 2024
e9dd12a
[us40] Show tooltip when the category are automatically set by rules
Musholic Feb 8, 2024
5ccacc8
[us40] Fix missing mock for tests of FileListComponent
Musholic Feb 8, 2024
7cfdf86
[us40] Compress database before uploading + Extract on download
Musholic Feb 8, 2024
d36d1c4
[us40] Support showing multiple background task progress at the same …
Musholic Feb 9, 2024
12994d0
[us40] Fix taskbar not showing anymore after first task finished
Musholic Feb 9, 2024
8d2e6c0
[us40] Warn the user before closing the application when there are ta…
Musholic Feb 9, 2024
4e7dd67
[us40] Fix showing messages for empty tasks when another one is not f…
Musholic Feb 9, 2024
4a54fb0
[us40] Support for scheduling background tasks by preventing concurre…
Musholic Feb 15, 2024
21e81ba
[us40] Add eslint support to detect some unbound-method issues + add …
Musholic Feb 16, 2024
1be0514
[us40] ESlint automatic fix: replace let by const
Musholic Feb 16, 2024
d91e1c6
[us40] Add some delay before rescheduling a task to avoid duplicates …
Musholic Feb 16, 2024
a7370c3
[us40] Github CI: Separate mutation testing from sonarcloud analysis
Musholic Feb 16, 2024
463f66a
[us40] Remove failing stryker job for now, will be fixed later
Musholic Feb 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": true
},
"plugins": [
"@typescript-eslint"
],
"rules": {}
}
23 changes: 1 addition & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
types: [ opened, synchronize, reopened ]
jobs:
sonarcloud:
name: SonarCloud
Expand All @@ -26,27 +26,6 @@ jobs:
- name: Run tests
run: npm run test:headless

- name: Cache stryker incremental file
uses: actions/cache@v3
with:
key: stryker-cache
path: ./reports/stryker-incremental.json

- name: Run stryker run
run: npm run test:mutation
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

- uses: actions/upload-artifact@v3
if: always()
with:
name: stryker-report
path: reports/mutation
retention-days: 30

- name: Convert mutation issues to sonarcloud generic issues
run: jq -f stryker-tool/mutation-report-to-sonar.jq reports/mutation/mutation.json > mutation-sonar.json

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 24 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,30 @@
"inlineStyleLanguage": "scss",
"assets": [
"src/smd_icon.png",
"src/assets"
"src/assets",
{
"glob": "mode-javascript.js",
"input": "node_modules/ace-builds/src-noconflict",
"output": "ace"
},
{
"glob": "worker-javascript.js",
"input": "node_modules/ace-builds/src-noconflict",
"output": "ace"
}
],
"styles": [
"src/theme.scss",
"src/styles.scss"
],
"scripts": []
"scripts": [],
"webWorkerTsConfig": "tsconfig.worker.json",
"allowedCommonJsDependencies": [
"filesize",
"ace-builds",
"jszip",
"pdfjs-dist"
]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -66,18 +83,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "storemydocs:build:production"
"buildTarget": "storemydocs:build:production"
},
"development": {
"browserTarget": "storemydocs:build:development"
"buildTarget": "storemydocs:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "storemydocs:build"
"buildTarget": "storemydocs:build"
}
},
"test": {
Expand All @@ -99,7 +116,8 @@
"src/styles.scss"
],
"scripts": [],
"karmaConfig": "karma.conf.js"
"karmaConfig": "karma.conf.js",
"webWorkerTsConfig": "tsconfig.worker.json"
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ module.exports = function (config) {
},
reporters: ['mocha', 'kjhtml'],
browsers: ['ChromeHeadless'],
restartOnFileChange: true
restartOnFileChange: true,
files: [
{
pattern: 'testing-assets/**',
included: false,
watched: false,
served: true
}
]
});
};
Loading